Commit f7d6c767 by 孙香冬

no message

parent a01304ba
......@@ -27,7 +27,8 @@ export class httpServer {
}
});
httpServer.use(express.static('video') );
httpServer.use(express.static(path.join(__dirname, "../../images")) );
httpServer.use(bodyParser.json({limit:"10kb"}));
httpServer.use(compression())
......
......@@ -7,6 +7,7 @@ import * as jgfwnl_spBiz from '../biz/jgfwnl_sp';
import * as jgfwnl_qycsfxBiz from '../biz/jgfwnl_qycsfx';
import * as jgfwnl_clcszlBiz from '../biz/jgfwnl_clcszl';
import * as jgfwnl_RSUfslBiz from '../biz/jgfwnl_RSUfsl';
import * as jgfwnlBiz from '../biz/jgfwnl/data';
export function setRouter(httpServer){
httpServer.get('/jgfwnl_yzy', asyncHandler(jgfwnl_yzyBiz.getData));
......@@ -23,5 +24,12 @@ export function setRouter(httpServer){
httpServer.post('/jgfwnl_clcszl', asyncHandler(jgfwnl_clcszlBiz.getData));
httpServer.post('/jgfwnl_RSUfsl', asyncHandler(jgfwnl_RSUfslBiz.getData));
httpServer.get('/yzy', asyncHandler(jgfwnlBiz.getYZY));
httpServer.get('/csgk', asyncHandler(jgfwnlBiz.getCSGK));
httpServer.get('/csfx', asyncHandler(jgfwnlBiz.getCSFX));
httpServer.post('/yzy', asyncHandler(jgfwnlBiz.getYZY));
httpServer.post('/csgk', asyncHandler(jgfwnlBiz.getCSGK));
httpServer.post('/csfx', asyncHandler(jgfwnlBiz.getCSFX));
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment