1
0
Fork 0
chronos/server/api.js

21 lines
320 B
JavaScript
Raw Normal View History

2017-03-02 09:55:04 +08:00
import Router from 'express';
export default class API {
constructor() {
this.router = Router({
strict: true,
});
this.router.get('/', (req, res) => {
res.end('API v1');
});
this.router.all('/*', this.constructor.auth);
}
static auth(req, res, next) {
res.end('not implemented');
next();
2017-03-02 09:55:04 +08:00
}
}