mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-22 07:02:27 -04:00
Make movie get work
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { FormatRegistry } from "@sinclair/typebox";
|
||||
import { TypeCompiler } from "@sinclair/typebox/compiler";
|
||||
import { t } from "elysia";
|
||||
|
||||
export const slugPattern = "^[a-z0-9-]+$";
|
||||
@@ -11,3 +12,6 @@ export const Resource = t.Object({
|
||||
id: t.String({ format: "uuid" }),
|
||||
slug: t.String({ format: "slug" }),
|
||||
});
|
||||
|
||||
const checker = TypeCompiler.Compile(t.String({ format: "uuid" }));
|
||||
export const isUuid = (id: string) => checker.Check(id);
|
||||
|
||||
Reference in New Issue
Block a user