xiongzhu 1 éve
szülő
commit
c99f64761b
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      src/routes/users-route.ts

+ 3 - 1
src/routes/users-route.ts

@@ -21,7 +21,9 @@ route.patch("/:id", async c => {
         .set(body)
         .where("id", "=", Number(c.req.param("id")))
         .executeTakeFirstOrThrow()
-    return c.text("")
+    return c.json({
+        message: "OK"
+    })
 })
 
 route.get("/", async c => {