Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

329 B
Raw Blame
import { FastifyPluginCallback } from 'fastify';

import { fileDownloadRoute } from './file-download';
import { fileUploadTusRoute } from './file-upload-tus';

export const fileRoutes: FastifyPluginCallback = (instance, _, done) => {
  instance.register(fileUploadTusRoute);
  instance.register(fileDownloadRoute);

  done();
};