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

28 lines
289 B
JavaScript
Raw Normal View History

2016-02-19 16:17:59 -05:00
'use strict';
module.exports = {
'/': {
2016-02-24 14:09:22 -05:00
get: (req, res) => {
2016-02-25 20:54:23 -05:00
res.render('admin-edit', {
title: 'Edit page',
theme: 'github-gist',
});
2016-02-24 14:09:22 -05:00
},
2016-02-19 16:17:59 -05:00
},
2016-02-24 14:09:22 -05:00
2016-02-19 16:17:59 -05:00
'/login': {
2016-02-24 14:09:22 -05:00
get: (req, res) => {
},
2016-02-19 16:17:59 -05:00
2016-02-24 14:09:22 -05:00
post: (req, res) => {
},
2016-02-19 16:17:59 -05:00
},
2016-02-24 14:09:22 -05:00
2016-02-19 16:17:59 -05:00
'/logout': {
2016-02-24 14:09:22 -05:00
get: (req, res) => {
2016-02-19 16:17:59 -05:00
2016-02-24 14:09:22 -05:00
},
2016-02-19 16:17:59 -05:00
},
};