mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-05 13:55:18 -04:00
Add demmy season controller
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { Elysia, t } from "elysia";
|
||||
import { Season } from "../models/season";
|
||||
|
||||
export const seasons = new Elysia({ prefix: "/seasons" })
|
||||
.model({
|
||||
season: Season,
|
||||
error: t.Object({}),
|
||||
})
|
||||
.get("/:id", () => "hello" as unknown as Season, {
|
||||
response: { 200: "season" },
|
||||
});
|
||||
Reference in New Issue
Block a user