import { FastifyPluginAsync } from 'fastify'; const page = `
This is the backup server! If you are a regular user, you wouldn't find this place very interesting and might as well close this page now.
If you are a sysadmin, please refer to API docs for more info
` .replaceAll('\n', '') .replaceAll(/ +/gm, ' ') .replaceAll(' <', '<'); export default (async function (fastify) { fastify.get('/', async (_req, rep) => { rep.type('text/html; charset=utf8'); return page; }); fastify.get('/favicon.ico', async (req, rep) => { rep.status(404); return ''; }); } as FastifyPluginAsync);