-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.js
14 lines (12 loc) · 861 Bytes
/
single.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var express = require('express');
var router = express.Router();
var controller = require('../controllers/singleController');
router.get('/updateArticle/:article', controller.updateArticle);
router.get('/statTotalRevisionOfArticle/:article', controller.statTotalRevisionOfArticle);
router.get('/findTop5RegUsersRevisedArticle/:article', controller.findTop5RegUsersRevisedArticle);
router.get('/statRevByYearByTypeOfArticle/:article', controller.statRevByYearByTypeOfArticle);
router.get('/statRevByTypeOfArticle/:article', controller.statRevByTypeOfArticle);
router.get('/findUsersOfArticle/:article', controller.findUsersOfArticle);
router.get('/statRevByYearByUserOfArticle/:user/:article', controller.statRevByYearByUserOfArticle);
router.get('/statTop5RegUsersRevisedArticle/:article', controller.statTop5RegUsersRevisedArticle);
module.exports = router;