Skip to content

Commit

Permalink
fix: fix import (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
KotRikD authored Jan 10, 2024
1 parent f244c87 commit d2e3bba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/tosu/src/api/router/gosu/v1.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// @ts-nocheck
import send from '@fastify/send';
import { wLogger } from '@tosu/common';
import { sleep } from '@tosu/common';
import { config } from '@tosu/common/dist/config';
import { FastifyInstance } from 'fastify';

import { sleep } from '@/utils/sleep';

export const buildV1Router = (app: FastifyInstance) => {
app.register(async (app) => {
app.get('/ws', { websocket: true }, async (connection, req) => {
Expand Down Expand Up @@ -83,6 +81,7 @@ export const buildV1Router = (app: FastifyInstance) => {
'Access-Control-Allow-Methods',
'POST, GET, PUT, DELETE, OPTIONS'
);
// @ts-ignore
send(req, mapPath, { root: settings.songsFolder }).pipe(reply.raw);
});
};

0 comments on commit d2e3bba

Please sign in to comment.