Closed stephencastaneda closed 4 years ago
<Switch> <PrivateRoute path='/newsong' component={NewSong} authed={authed} /> <PrivateRoute path='/song/:songId' component={SingleSong} authed={authed} /> <PrivateRoute path='/songs' component={Song} authed={authed} /> <PrivateRoute path='/set' component={Set} authed={authed} /> <PublicRoute path='/auth' component={Auth} authed={authed} /> <Redirect from="*" to="/home"/> </Switch>
<Switch>
<PrivateRoute path='/newsong' component={NewSong} authed={authed} />
<PrivateRoute path='/song/:songId' component={SingleSong} authed={authed} />
<PrivateRoute path='/songs' component={Song} authed={authed} />
<PrivateRoute path='/set' component={Set} authed={authed} />
<PublicRoute path='/auth' component={Auth} authed={authed} />
<Redirect from="*" to="/home"/>
</Switch>
<Switch>
<PrivateRoute path='/newsong' component={NewSong} authed={authed} />
<PrivateRoute path='/song/:songId' component={SingleSong} authed={authed} />
<PrivateRoute path='/songs' component={Song} authed={authed} />
<PrivateRoute path='/set' component={Set} authed={authed} />
<PublicRoute path='/auth' component={Auth} authed={authed} />
<Redirect from="*" to="/home"/>
</Switch>