Skip to content

Commit

Permalink
fix: add schema to /api/ping/:route
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaur committed Oct 23, 2024
1 parent d8d0564 commit b3fc8a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/ping/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default async function routes (fastify, options) {
})

fastify.get('/:response', {
schema,
handler: async (request, reply) => {
const response = { ping: request.params.response }
await logAccess(response, fastify.mongo.db.collection('access-log'))
Expand Down

0 comments on commit b3fc8a0

Please sign in to comment.