mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-06-22 04:11:32 +10:00
Fix unauthenticated /api/v1/client/chunk route
Critical fix, no issue or PR
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import cacheHandler from "~/server/internal/cache";
|
import cacheHandler from "~/server/internal/cache";
|
||||||
|
import { defineClientEventHandler } from "~/server/internal/clients/event-handler";
|
||||||
import prisma from "~/server/internal/db/database";
|
import prisma from "~/server/internal/db/database";
|
||||||
import libraryManager from "~/server/internal/library";
|
import libraryManager from "~/server/internal/library";
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@ const gameLookupCache = cacheHandler.createCache<{
|
|||||||
libraryPath: string;
|
libraryPath: string;
|
||||||
}>("downloadGameLookupCache");
|
}>("downloadGameLookupCache");
|
||||||
|
|
||||||
export default defineEventHandler(async (h3) => {
|
export default defineClientEventHandler(async (h3) => {
|
||||||
const query = getQuery(h3);
|
const query = getQuery(h3);
|
||||||
const gameId = query.id?.toString();
|
const gameId = query.id?.toString();
|
||||||
const versionName = query.version?.toString();
|
const versionName = query.version?.toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user