WIP: Successful Google Auth, broke pretty much everything else in the process
This commit is contained in:
20
server/auth/index.js
Normal file
20
server/auth/index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// @flow
|
||||
import bodyParser from 'koa-bodyparser';
|
||||
import Koa from 'koa';
|
||||
import Router from 'koa-router';
|
||||
import validation from '../middlewares/validation';
|
||||
|
||||
import slack from './slack';
|
||||
import google from './google';
|
||||
|
||||
const auth = new Koa();
|
||||
const router = new Router();
|
||||
|
||||
router.use('/', slack.routes());
|
||||
router.use('/', google.routes());
|
||||
|
||||
auth.use(bodyParser());
|
||||
auth.use(validation());
|
||||
auth.use(router.routes());
|
||||
|
||||
export default auth;
|
||||
Reference in New Issue
Block a user