You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
299 B
14 lines
299 B
import Router from '../utils/router.js';
|
|
import { status } from '../controllers/v1/statusController.js';
|
|
|
|
const v1 = new Router({ prefix: '/api/v1' });
|
|
|
|
// 组内中间件
|
|
v1.use((ctx, next) => {
|
|
ctx.set('X-API-Version', 'v1');
|
|
return next();
|
|
});
|
|
|
|
v1.get('/status', status);
|
|
|
|
export default v1;
|