This commit is contained in:
chaosBreaking
2019-08-31 14:59:13 +08:00
commit dc5423d356
65 changed files with 3813 additions and 0 deletions

12
src/routes/index.js Normal file
View File

@@ -0,0 +1,12 @@
'use strict';
const express = require('express');
const ServiceManager = require('../service');
const versionList = ['v1'];
module.exports = app => {
versionList.map(version => {
const path = '/' + version.replace('/', '');
app.use(path, ServiceManager.mountService(express.Router(), version));
});
return app;
};