Skip to content

Frontend Routes

maggiecs edited this page Jan 22, 2019 · 5 revisions

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.

  • / when not logged in
    • Splash
  • / when logged in
  • PostIndex
    • PostIndexItem
  • /login
    • SessionForm
  • /signup
    • SessionForm
  • /users/:userId
    • ProfileComponent
    • PostIndex
      • PostIndexItem
  • /posts/new
    • PostForm
  • /posts/:postId
    • PostShow
      • CommentsIndex
      • CommentForm
  • /posts/:postId/edit
    • PostForm

Clone this wiki locally