This commit is contained in:
2025-12-10 08:32:22 +01:00
parent c3467bdd9d
commit 4016c8b6b5

View File

@@ -477,6 +477,7 @@ export default async function resourceRoutes(server: FastifyInstance) {
// UPDATE (inkl. Soft-Delete/Archive)
server.put("/resource/:resource/:id", async (req, reply) => {
try {
const {resource, id} = req.params as { resource: string; id: string }
const body = req.body as Record<string, any>
@@ -529,6 +530,10 @@ export default async function resourceRoutes(server: FastifyInstance) {
}*/
return updated
} catch (err) {
console.log("ERROR /resource/projects/:id", err)
}
})
}