-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend Routes
This page displays a log in form
GET /login
POST /login
This page displays a signup form.
GET /signup
POST /signup
This page displays the ten most recent FauxTweets and their FauxLikes, as well as a navigation bar with login/signup or logout buttons. Each FauxTweet has an update and delete button if it belongs to the currently logged in user. Logged in users can FauxLike the FauxTweets on this page.
GET /
POST /fauxtweets/:id/fauxlikes
DELETE /fauxtweets/:id/fauxlikes
This page displays a form with which a logged in user can craft a new FauxTweet, as well as a navigation bar with login/signup or logout buttons.
POST /fauxtweets
This page displays individual FauxTweets with associated FauxComments and FauxLikes, as well as a navigation bar with login/signup or logout buttons. If the logged in user owns the FauxTweet, this page also displays an update and delete button. Logged in users can FauxLike the FauxTweet and FauxComments on this page, and can post FauxComments. The logged in owners of those FauxComments can update or delete them.
GET /fauxtweets/:id
POST /fauxtweets/:id/fauxlikes
DELETE /fauxtweets/:id/fauxlikes
POST /fauxtweets/:id/fauxcomments
DELETE /fauxtweets/:id/fauxcomments