mirror of
https://github.com/BillyOutlast/drop.git
synced 2026-02-04 00:31:17 +01:00
* feat: game specialisation, auto-guess extensions * fix: enforce specialisation specific schema at API level * fix: lint * feat: partial work on depot endpoints * feat: bump torrential * feat: dummy version creation for depot uploads * fix: lint * fix: types * fix: lint * feat: depot version import * fix: lint * fix: remove any type * fix: lint * fix: push update interval * fix: cpu usage calculation * feat: delta version support * feat: style tweaks for selectlaunch.vue * fix: lint
16 lines
514 B
TypeScript
16 lines
514 B
TypeScript
import { defineClientEventHandler } from "~/server/internal/clients/event-handler";
|
|
import { createDownloadManifestDetails } from "~/server/internal/library/manifest/index";
|
|
|
|
export default defineClientEventHandler(async (h3) => {
|
|
const query = getQuery(h3);
|
|
const version = query.version?.toString();
|
|
if (!version)
|
|
throw createError({
|
|
statusCode: 400,
|
|
statusMessage: "Missing version ID in query",
|
|
});
|
|
|
|
const result = await createDownloadManifestDetails(version);
|
|
return result;
|
|
});
|