⚗️ experiment: try OpenAPI metadata configuration
This commit is contained in:
14
src/index.ts
14
src/index.ts
@ -18,7 +18,19 @@ async function bootstrap() {
|
||||
new Elysia()
|
||||
.use(middleware)
|
||||
.use(routes)
|
||||
.use(openapi())
|
||||
.use(
|
||||
openapi({
|
||||
documentation: {
|
||||
tags: [
|
||||
{
|
||||
name: "Internal",
|
||||
description:
|
||||
"Endpoints for internal use only, not exposed to public API consumers.",
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
)
|
||||
.listen(process.env.APP_PORT || 3000);
|
||||
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user