mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 12:33:06 +00:00
11 lines
488 B
TypeScript
11 lines
488 B
TypeScript
import { FastifyPluginAsync } from 'fastify';
|
|
import { traefikConfiguration, traefikOtherConfiguration } from './handlers';
|
|
import { TraefikOtherConfiguration } from './types';
|
|
|
|
const root: FastifyPluginAsync = async (fastify): Promise<void> => {
|
|
fastify.get('/main.json', async (request, reply) => traefikConfiguration(request, reply));
|
|
fastify.get<TraefikOtherConfiguration>('/other.json', async (request, reply) => traefikOtherConfiguration(request));
|
|
};
|
|
|
|
export default root;
|