This commit is contained in:
2024-11-21 18:17:26 +01:00
parent f8d97ed19e
commit f6c8b2ee8c
5 changed files with 24 additions and 25 deletions

View File

@@ -10,6 +10,7 @@ app.use('*', logger())
app.use('*', prettyJSON())
app.route('/api/v1/email', emailRouter)
app.get('/docs', createSwaggerUI())
app.get('/swagger', createSwaggerUI())
const port = process.env.PORT || 3000

View File

@@ -1,8 +1,5 @@
import { OpenAPIHono } from '@hono/zod-openapi'
import { swaggerUI } from '@hono/swagger-ui'
const openapi = new OpenAPIHono()
const routes = {
'/api/v1/email': {
post: {