feat: add version and bump pakcages
This commit is contained in:
@@ -250,6 +250,14 @@ router.get('/api/container/file/:id', async (req, res) => {
|
||||
res.end(JSON.stringify(container));
|
||||
});
|
||||
|
||||
router.get('/api/code/version', async (req, res) => {
|
||||
const version = VERSION;
|
||||
res.writeHead(200, {
|
||||
'Content-Type': 'application/json',
|
||||
});
|
||||
res.end(JSON.stringify({ code: 200, data: { version } }));
|
||||
});
|
||||
|
||||
export const uploadMiddleware = async (req: http.IncomingMessage, res: http.ServerResponse) => {
|
||||
return router.parse(req, res);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user