Commit 3382d135 by chenjinjing

no message

parent ad1378f7
......@@ -3,5 +3,6 @@
/out
/node_modules
/test
/public
*test*
*.log
\ No newline at end of file
......@@ -33,6 +33,7 @@ export class httpServer {
routers.setRouter(httpServer);
const root = path.join(__dirname, "../../public/")
httpServer.use(express.static(path.join(__dirname, "../../img/")) );
httpServer.use(express.static(root))
httpServer.use(fallback('index.html', { root }))
console.log('web listen on port:'+port);
......
......@@ -13,24 +13,24 @@ export function setRouter(httpServer){
//======post
httpServer.post('/qyszhx', asyncHandler(wmkqyszhxBiz.getData));
httpServer.post('/yuyi/viewserver/qyszhx', asyncHandler(wmkqyszhxBiz.getData));
httpServer.post('/jxgljsc', asyncHandler(jxgljscBiz.getData));
httpServer.post('/yuyi/viewserver/jxgljsc', asyncHandler(jxgljscBiz.getData));
httpServer.post('/qyfw', asyncHandler(qyfwBiz.getData));
httpServer.post('/yuyi/viewserver/qyfw', asyncHandler(qyfwBiz.getData));
httpServer.post('/zhyy', asyncHandler(zhyyBiz.getData));
httpServer.post('/yuyi/viewserver/zhyy', asyncHandler(zhyyBiz.getData));
//======get
6
httpServer.get('/yuyi/viewserver/qyszhx', asyncHandler(wmkqyszhxBiz.getData));
httpServer.get('/qyszhx', asyncHandler(wmkqyszhxBiz.getData));
httpServer.get('/yuyi/viewserver/jxgljsc', asyncHandler(jxgljscBiz.getData));
httpServer.get('/jxgljsc', asyncHandler(jxgljscBiz.getData));
httpServer.get('/yuyi/viewserver/qyfw', asyncHandler(qyfwBiz.getData));
httpServer.get('/qyfw', asyncHandler(qyfwBiz.getData));
httpServer.get('/zhyy', asyncHandler(zhyyBiz.getData));
httpServer.get('/yuyi/viewserver/zhyy', asyncHandler(zhyyBiz.getData));
}
\ 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