feat: refactor stage to multiple route design

This commit is contained in:
wancat committed 2023-08-30 18:05:11 +08:00
1 parent 52c6c6ab93
commit e16b328892
6 files changed
+51 -32

No files matched your search

@@ -36,7 +36,6 @@ export async function newCommand(req, res) {
}
session.lastActivityAt = new Date()
await session.save()
const c = new Command({
session,
@@ -54,4 +53,5 @@ export async function newCommand(req, res) {
console.log(response)
res.status(201).json(response)
await session.save()
}