mirror of
https://github.com/wassname/talk.git
synced 2026-07-20 12:40:47 +08:00
Merge pull request #254 from coralproject/graphql
Graphql redux (as in 'the return of')
This commit is contained in:
@@ -18,7 +18,7 @@ const buildOptions = (inputOptions = {}) => {
|
||||
|
||||
if (options._csrf) {
|
||||
switch (options.method.toLowerCase()) {
|
||||
case 'POST':
|
||||
case 'post':
|
||||
case 'put':
|
||||
case 'delete':
|
||||
options.headers['x-csrf-token'] = options._csrf;
|
||||
|
||||
@@ -15,7 +15,7 @@ router.get('/login', (req, res, next) => {
|
||||
});
|
||||
|
||||
router.get('*', (req, res) => {
|
||||
res.render('ADMIN', {basePath: '/client/coral-admin'});
|
||||
res.render('admin', {basePath: '/client/coral-admin'});
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user