Add ability to delete configurations
This commit is contained in:
@@ -157,6 +157,9 @@ export const app = new Elysia()
|
||||
params: t.Object({ id: t.String() }),
|
||||
body: t.Object({ name: t.String(), datasetId: t.String(), params: StandardsParamsSchema })
|
||||
})
|
||||
.delete("/configs/:id", async ({ params: { id } }) => {
|
||||
await s.Standards.Configs.delete(id);
|
||||
}, { params: t.Object({ id: t.String() }) })
|
||||
.get("/datasets", async () => {
|
||||
return await s.Standards.Datasets.list();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user