Tiny tweaks
This commit is contained in:
@@ -126,8 +126,8 @@ export const app = new Elysia()
|
||||
.get("/standards/config", async () => {
|
||||
return await s.Calculator.Standards.Config.get();
|
||||
})
|
||||
.post("/standards/config/switch", async ({ body: { standardsConfigId: id } }) => {
|
||||
await s.Calculator.Standards.Config.switch(id);
|
||||
.post("/standards/config/switch", async ({ body: { standardsConfigId } }) => {
|
||||
await s.Calculator.Standards.Config.switch(standardsConfigId);
|
||||
}, {
|
||||
body: t.Object({ standardsConfigId: t.String() })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user