I mean I still do have defined routes since given the path I may fetch or provide different data, but I do pull in generally the same function that I reuse like:// Compiled React routes imported to be used in vanilla server.js const { RenderDashboard } = './src/shared'; // These are just static pages that render just static HTML const { LoginPage, SignupPage, DirectView } = './static'; app.get('/', RenderDashboard); app.get(/\/(activity|something)/, RenderDashboard); app.get('/profile/:id', RenderDashboard); Additionally I have lots of api rest routes that expose various resources. How do I logically organize a project without a traditional view?
Submitted February 05, 2018 at 06:32PM by TheBeardofGilgamesh
No comments:
Post a Comment