feat: add version and bump pakcages

This commit is contained in:
2025-02-23 12:17:02 +08:00
parent 4e080a0b93
commit 70b6881a38
7 changed files with 187 additions and 172 deletions

View File

@@ -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);
};