blob: 37664e314174aa2e3b374b9775b227869eae3f45 [file] [log] [blame]
import * as express from 'express';
import { UserCtrl } from './controllers/user';
import { HelixCtrl } from './controllers/helix';
export default function setRoutes(app) {
const router = express.Router();
const userCtrl = new UserCtrl(router);
const helixCtrl = new HelixCtrl(router);
// Apply the routes to our application with the prefix /api
app.use('/api', router);
/* GET /admin to check app health. */
app.get('/admin', (req, res, next) => {
res.status(200).send('GOOD');
});
}