Skip to content

Commit

Permalink
fix: endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Celesca committed Nov 7, 2024
1 parent 4edf9c0 commit 2b26a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/userController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const userController = new Elysia({ prefix: "/user" })

// Update user profile
.put(
"/:userID/update",
"/update/:userID",
async ({ params: { userID }, body, error }) => {
const { userName } = body;

Expand Down Expand Up @@ -116,7 +116,7 @@ export const userController = new Elysia({ prefix: "/user" })

// Delete user profile
.delete(
"/:userID/delete",
"/:userID",
async ({ params: { userID }, error }) => {
// Check if the user exists
const user = await prisma.user.findUnique({
Expand Down

0 comments on commit 2b26a9b

Please sign in to comment.