fix(api): clean up redundant /api prefixes and fix swagger documentation

This commit is contained in:
2026-04-01 15:24:12 +08:00
parent 7d9b7b0c60
commit 3cd6fcbd81
14 changed files with 39 additions and 30 deletions

View File

@@ -7,7 +7,7 @@ import userDelete from "./del"; // `delete` nggak boleh jadi nama file JS langsu
import userUpdate from "./updt";
import userDeleteAccount from "./delUser";
const User = new Elysia({ prefix: "/api/user" })
const User = new Elysia({ prefix: "/user" })
.get("/findMany", userFindMany)
.get("/findUnique/:id", userFindUnique)
.put("/del/:id", userDelete, {