54 lines
503 B
JavaScript
54 lines
503 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
'/': {
|
|
get: (req, res) => {
|
|
res.render('admin-edit', {
|
|
title: 'Edit page',
|
|
theme: 'github-gist',
|
|
});
|
|
},
|
|
},
|
|
|
|
'/login': {
|
|
get: (req, res) => {
|
|
|
|
},
|
|
|
|
post: (req, res) => {
|
|
|
|
},
|
|
},
|
|
|
|
'/logout': {
|
|
get: (req, res) => {
|
|
|
|
},
|
|
},
|
|
|
|
'/user/list': {
|
|
get: (req, res) => {
|
|
|
|
},
|
|
},
|
|
|
|
'/user/edit': {
|
|
get: (req, res) => {
|
|
|
|
},
|
|
|
|
post: (req, res) => {
|
|
|
|
},
|
|
},
|
|
|
|
'/user/add': {
|
|
get: (req, res) => {
|
|
|
|
},
|
|
|
|
post: (req, res) => {
|
|
|
|
},
|
|
},
|
|
}; |