(fastify)
| 2 | import type { FastifyPluginCallback } from 'fastify'; |
| 3 | |
| 4 | const miscRouter: FastifyPluginCallback = async (fastify) => { |
| 5 | fastify.route({ |
| 6 | method: 'POST', |
| 7 | url: '/ping', |
| 8 | handler: controller.ping, |
| 9 | }); |
| 10 | |
| 11 | fastify.route({ |
| 12 | method: 'GET', |
| 13 | url: '/stats', |
| 14 | handler: controller.stats, |
| 15 | }); |
| 16 | |
| 17 | fastify.route({ |
| 18 | method: 'GET', |
| 19 | url: '/favicon', |
| 20 | handler: controller.getFavicon, |
| 21 | }); |
| 22 | |
| 23 | fastify.route({ |
| 24 | method: 'GET', |
| 25 | url: '/og', |
| 26 | handler: controller.getOgImage, |
| 27 | }); |
| 28 | |
| 29 | fastify.route({ |
| 30 | method: 'GET', |
| 31 | url: '/og/clear', |
| 32 | handler: controller.clearOgImages, |
| 33 | }); |
| 34 | |
| 35 | fastify.route({ |
| 36 | method: 'GET', |
| 37 | url: '/favicon/clear', |
| 38 | handler: controller.clearFavicons, |
| 39 | }); |
| 40 | |
| 41 | fastify.route({ |
| 42 | method: 'GET', |
| 43 | url: '/geo', |
| 44 | handler: controller.getGeo, |
| 45 | }); |
| 46 | }; |
| 47 | |
| 48 | export default miscRouter; |
nothing calls this directly
no outgoing calls
no test coverage detected