mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
13 lines
388 B
TypeScript
13 lines
388 B
TypeScript
import { defineClientEventHandler } from "~/server/internal/clients/event-handler";
|
|
|
|
export default defineClientEventHandler(async (h3) => {
|
|
const query = getQuery(h3);
|
|
const id = query.id?.toString();
|
|
const version = query.version?.toString();
|
|
if (!id || !version)
|
|
throw createError({
|
|
statusCode: 400,
|
|
statusMessage: "Missing id or version in query",
|
|
});
|
|
});
|