Skip to content

Instantly share code, notes, and snippets.

@malihassan20
Created January 17, 2018 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malihassan20/75bb1159f8212daa36dd1fe02a3380fd to your computer and use it in GitHub Desktop.
Save malihassan20/75bb1159f8212daa36dd1fe02a3380fd to your computer and use it in GitHub Desktop.
nextJs-tour-diary-app\routes.js
const routes = (module.exports = require('next-routes')());
routes.add('index', '/');
routes.add('tour-detail', '/tour-detail/:tourId');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment