-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.js
38 lines (32 loc) · 1.17 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Title: Routes indicator file.
* Description: Routes indicator file file for project.
* Author: Mohammad Mesbaul Haque
* Github link: https://github.com/Mohammad-Mesbaul-Haque/Uptime-Monitoring-RawNode-Api.git
* Date: 17/09/2021
*/
// Dependencies.
const {sampleHandler} = require('./handlers/routeHandlers/sampleHandler');
const {userHandler, index} = require('./handlers/routeHandlers/userHandler');
const { tokenHandler } = require('./handlers/routeHandlers/tokenHandler');
const { checkHandler } = require('./handlers/routeHandlers/checkHanler');
// App object or Module scaffolding.
const routes = {
'' : index,
// 'account/create' : createHandler,
// 'account/edit' : editHandler,
// 'account/deleted' : deletedHandler,
// 'session/create' : sessionCreateHandler,
// 'session/deleted' : sessionDeletedHandler,
// 'checks/all' : checkListHandler,
// 'checks/create' : checksCreateHandler,
// 'checks/edit' : checksEditHandler,
'sample': sampleHandler,
'api/user': userHandler,
'api/token': tokenHandler,
'api/check': checkHandler
}
// main functions or objects.
module.exports = routes;
// export the module.