|
|
@ -10,6 +10,7 @@ var mainRouter=require('./routes/main/main') |
|
|
|
var projectRouter=require('./routes/main/project') |
|
|
|
var projectRouter=require('./routes/main/project') |
|
|
|
var dataRouter=require('./routes/main/data') |
|
|
|
var dataRouter=require('./routes/main/data') |
|
|
|
var projectDetailRouter=require('./routes/project/project') |
|
|
|
var projectDetailRouter=require('./routes/project/project') |
|
|
|
|
|
|
|
var infoRouter=require('./routes/project/info') |
|
|
|
const server = require("inspector"); |
|
|
|
const server = require("inspector"); |
|
|
|
|
|
|
|
|
|
|
|
var app = express(); |
|
|
|
var app = express(); |
|
|
@ -31,7 +32,7 @@ app.use(cors({ |
|
|
|
app.use('/', indexRouter); |
|
|
|
app.use('/', indexRouter); |
|
|
|
app.use('/api/account',accountRouter) |
|
|
|
app.use('/api/account',accountRouter) |
|
|
|
app.use('/api/main',mainRouter,projectRouter,dataRouter) |
|
|
|
app.use('/api/main',mainRouter,projectRouter,dataRouter) |
|
|
|
app.use('/api/project',projectDetailRouter) |
|
|
|
app.use('/api/project',projectDetailRouter,infoRouter) |
|
|
|
|
|
|
|
|
|
|
|
// catch 404 and forward to error handler
|
|
|
|
// catch 404 and forward to error handler
|
|
|
|
app.use(function(req, res, next) { |
|
|
|
app.use(function(req, res, next) { |
|
|
|