MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / miscRouter

Function miscRouter

apps/api/src/routes/misc.router.ts:4–46  ·  view source on GitHub ↗
(fastify)

Source from the content-addressed store, hash-verified

2import type { FastifyPluginCallback } from 'fastify';
3
4const 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
48export default miscRouter;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected