The point of a paste site is to share. We need to serve requests of the form ourapp.com/hash.
In the Actually save things section, we established an association between the hash of a paste and the user who made it. Using these parts, we can construct the endpoint we need to hit to locate the paste.
To serve a viewer request for ourapp.com/hash, we construct the endpoint, make a request to the pod, and display the content.
The point of a paste site is to share. We need to serve requests of the form
ourapp.com/hash
.Actually save things
section, we established an association between the hash of a paste and the user who made it. Using these parts, we can construct the endpoint we need to hit to locate the paste.ourapp.com/hash
, we construct the endpoint, make a request to the pod, and display the content.