wip
This commit is contained in:
parent
f8d97ed19e
commit
f6c8b2ee8c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
node_modules
|
||||
.env
|
||||
|
44
package.json
44
package.json
@ -1,23 +1,23 @@
|
||||
{
|
||||
"name": "email-microservice",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "bun --watch src/index.ts",
|
||||
"start": "bun src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hono/node-server": "^1.3.3",
|
||||
"@hono/swagger-ui": "^0.2.1",
|
||||
"@hono/zod-openapi": "^0.9.5",
|
||||
"@hono/zod-validator": "^0.1.11",
|
||||
"bullmq": "^5.1.1",
|
||||
"hono": "^4.0.0",
|
||||
"ioredis": "^5.3.2",
|
||||
"zod": "^3.22.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.10.4",
|
||||
"bun-types": "latest"
|
||||
}
|
||||
}
|
||||
"name": "email-microservice",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "bun --watch src/index.ts",
|
||||
"start": "bun src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hono/node-server": "1.13.7",
|
||||
"@hono/swagger-ui": "0.4.1",
|
||||
"@hono/zod-openapi": "0.18.0",
|
||||
"@hono/zod-validator": "0.4.1",
|
||||
"bullmq": "5.28.1",
|
||||
"hono": "4.6.11",
|
||||
"ioredis": "5.4.1",
|
||||
"zod": "3.23.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "22.9.1",
|
||||
"bun-types": "1.1.36"
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user