This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ProgBlog/app/controllers/admin.js

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) => {
},
},
};