Commit 8d0f13ca authored by Vũ Gia Vương's avatar Vũ Gia Vương

add route /socket

parent 3be28113
......@@ -11,4 +11,7 @@ app.use(express_1.default.json());
app.get('/', (req, res, next) => {
res.send('Hello World');
});
app.get('/socket', (req, res, next) => {
res.send('socket');
});
exports.default = app;
......@@ -8,5 +8,8 @@ app.use(express.json());
app.get('/', (req: Request, res: Response, next: NextFunction) => {
res.send('Hello World')
})
app.get('/socket', (req: Request, res: Response, next: NextFunction) => {
res.send('socket')
})
export default app;
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