routes.js

Summary

Maintainability
A
0 mins
Test Coverage
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;