mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-02 13:14:29 -04:00
12 lines
273 B
TypeScript
12 lines
273 B
TypeScript
import { Elysia, t } from "elysia";
|
|
import { Serie } from "../models/serie";
|
|
|
|
export const series = new Elysia({ prefix: "/series" })
|
|
.model({
|
|
serie: Serie,
|
|
error: t.Object({}),
|
|
})
|
|
.get("/:id", () => "hello" as unknown as Serie, {
|
|
response: { 200: "serie" },
|
|
});
|