Skip to content

Commit

Permalink
fix: swagger path
Browse files Browse the repository at this point in the history
  • Loading branch information
Celesca committed Nov 24, 2024
1 parent dc4c082 commit c9ac649
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/controllers/personalController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ export const personalController = new Elysia({ prefix: "/personal" })
PersonalTypeID: null,
},
});


return updatedPersonal;

}, {
params: t.Object({
userID: t.String(),
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { personalController } from "./controllers/personalController";

const app = new Elysia()
.get("/", () => "Hello Elysia")
.use(swagger())
.use(swagger({ path: '/v2/swagger' }))
.use(cors({
origin: "*",
}))
Expand Down

0 comments on commit c9ac649

Please sign in to comment.