Skip to content

frontend routes

Marshall Strong edited this page Jan 19, 2021 · 1 revision

Frontend Routes

Our components are organized as follows:

  • Root
    • App
      • NavBar
      • (main component goes here)
      • Footer

The following routes, defined in App, will render components between NavBar and Footer.

  • /

    • Splash
  • /login

    • SessionForm
  • /signup

    • SessionForm
  • /users/:userId

    • UserShow
    • AnnotationsIndex (authored annotations)
      • AnnotationsIndexItem
  • /artists/:artistId

    • ArtistShow
      • ArtistDescription
        • AnnotationShow (artist annotation with the most upvotes)
      • AlbumsIndex (albums by artist)
        • AlbumsIndexItem
      • ArtistMetadata
      • AnnotationsIndex (annotations on artist)
        • AnnotationsIndexItem
        • AnnotationForm
    • CommentsIndex (comments on artist)
      • CommentIndexItem
      • CommentForm
  • /albums/:albumId

    • AlbumShow
      • AlbumDescription
        • AnnotationShow (album annotation with the most upvotes)
      • SongsIndex (songs on album)
        • SongItemShow
      • AlbumMetadata
      • AnnotationsIndex (annotations on album)
        • AnnotationItemShow
        • AnnotationForm
    • CommentsIndex (comments on album)
      • CommentIndexItem
      • CommentForm
  • /songs/:songId

    • SongShow
      • SongHeader
      • SongDescription
        • AnnotationShow (song annotation with the most upvotes)
      • SongMetadata
      • AnnotationsIndex (annotations on song)
        • AnnotationItemShow
        • AnnotationForm
      • VersesIndexComponent
        • VerseItemShow
          • AnnotationsIndex (annotations on verse -- displayed in SIDEBAR)
    • CommentsIndex (comments on song)
      • CommentIndexItem
      • CommentForm
Clone this wiki locally