Frontend Routes - gradyzhu/smilr GitHub Wiki
Component Hierarchy
Root
App
NavBar
Main
Footer
Front End Routes
The following routes, defined in App, will render components between NavBar
and Footer
.
General
/
Splash
Session
/login
SessionForm
/signup
SessionForm
Photos
/upload
UploadForm
- Uploads a photo.
/photos/
PhotosIndex
- Shows all photos on website, renders many
PhotosIndexItem
- Shows all photos on website, renders many
/photos/:photoId
PhotoView
- Shows a specific photo.
/photos/:photoId/edit
PhotoForm
- Edits a specific photo.
Albums
/users/:userId/albums
AlbumsIndex
- renders many
AlbumIndexItem
- renders many
/albums/:albumId
AlbumIndexItem
- renders many
PhotoIndexItem
- renders many
/albums/:albumId/edit
AlbumEditForm
- renders album edit form
Tags
/tags/:tagId
PhotosIndex
- view all photos with specific tag, renders many
PhotoIndexItem
- view all photos with specific tag, renders many