Create dummy video controller

This commit is contained in:
Zoe Roux
2024-11-09 01:59:06 +01:00
parent 372c1f6875
commit 039c19f61c
2 changed files with 18 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
import { Elysia, t } from "elysia";
import { Video } from "../models/video";
export const videos = new Elysia({ prefix: "/videos" })
.model({
video: Video,
error: t.Object({}),
})
.get("/:id", () => "hello" as unknown as Video, {
response: { 200: "video" },
});