forked from Sly777/ran
-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.js
25 lines (23 loc) · 778 Bytes
/
routes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const routes = require('next-routes')();
//
// Because of awesome Next.js, You don't need to add routes for all pages.
// Every file on Pages folder basically has route as they named.
// (index.js => /, about.js => /about, ...etc.)
//
// If you want to change url (for SEO or put different path), please add your route below.
// for more info, please look at https://github.com/Sly777/ran/blob/master/docs/Routing.md
//
//
// Please add your route between of comments
//
// ------------ ROUTES ---------------
// @RANStartRoutes
routes.add('details', '/details/:postId/:postTitle');
routes.add('create', '/create_post');
routes.add('signin', '/sign_in');
routes.add('signup', '/sign_up');
// @RANEndRoutes
// ------------ ROUTES ---------------
//
//
module.exports = routes;