-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroutes.js
More file actions
28 lines (20 loc) · 947 Bytes
/
routes.js
File metadata and controls
28 lines (20 loc) · 947 Bytes
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
'use strict';
const express = require('express');
const router = express.Router();
const start = require('./controllers/start');
const dashboard = require('./controllers/dashboard.js');
const bookmark = require('./controllers/bookmark.js');
const about = require('./controllers/about.js');
const comment = require('./controllers/comment.js');
router.get('/', start.index);
router.get('/dashboard', dashboard.index);
router.get('/dashboard/deletebookmark/:id', dashboard.deleteBookmark);
router.post('/dashboard/addbookmark', dashboard.addBookmark);
router.get('/bookmark/:id', bookmark.index);
router.get('/bookmark/:id/deletelink/:linkid', bookmark.deleteLink);
router.post('/bookmark/:id/addlink', bookmark.addLink);
router.get('/about', about.index);
router.get('/comment/:id', comment.index);
router.get('/comment/:id/deleteinfo/:infoid', comment.deleteInfo);
router.post('/comment/addinfo', comment.addInfo);
module.exports = router;