react-hackathon-board
Version:
Hackathon board with React/node/mongo
16 lines (11 loc) • 327 B
JavaScript
import Router from 'koa-router';
import hacksAPI from './hacks';
import hackathonsAPI from './hackathons';
import bodyParser from 'koa-bodyparser';
const api = new Router({
prefix: '/api'
});
api.use(bodyParser());
api.use('/hacks', hacksAPI.routes());
api.use('/hackathons', hackathonsAPI.routes());
export default api;