Routes & Components - MattMav21/Picture-Perfect-Project GitHub Wiki
GET ROUTES:
"/"
<MainPage />
- Contains all uploaded pictures
"/users/:userId"
<UserPage />
- Contains user info for a specific user
"/pictures/:pictureId"
<Picture />
- Contains information for a picture, including the optional title of the picture, the picture itself, the optional description of the picture, who uploaded it, and all of the tags and comments associated with it.
"/albums/:albumId"
<Album />
- Contains information for an album, including the name of the album, the user that created the album, all of the pictures of the album.
"/search/:tagValue/"
<SearchByTags />
- How users will be able to search the sites database with specific tags.
- Can be triggered by either using search bar or by clicking on tags.
POST ROUTES:
"/pictures/"
<PictureUploadForm />
- How users will be able to post their pictures to the main stream.
"/albums/"
<CreateAlbum />
- How users will be able to create an album.
"/pictures/:pictureId/comments"
<PostComment />
- How users can post comments to a picture.
"/albums/:albumId/comments"
<PostComment />
- How users can post comments to an album.
PATCH ROUTES
"/pictures/:pictureId/comments/:commentId"
<EditCommentsForm />
- How a user can edit their comment on a picture
"/albums/:albumId/comments/:commentId"
<EditCommentForm />
- How a user can edit their comment on an album.
"/pictures/:pictureId"
<EditPicture />
- How a user can edit the title, description, and tags of the picture.
"albums/:albumId"
<EditAlbum />
- How a user can edit the title, description, and tags of the album.
- /users
- /pictures
- /albums
- /search
- MainPaige
- UserPage
- Picture
- Album
- SearchByTags
- PictureUploadForm
- CreateAlbum
- PostComment
- EditCommentForm
- EditPicture
- EditAlbum