mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-21 14:03:21 -05:00
Format stuff
This commit is contained in:
parent
01177c2489
commit
03bb51661a
@ -14,7 +14,7 @@ import { showsH } from "./controllers/shows/shows";
|
|||||||
import { staffH } from "./controllers/staff";
|
import { staffH } from "./controllers/staff";
|
||||||
import { studiosH } from "./controllers/studios";
|
import { studiosH } from "./controllers/studios";
|
||||||
import { videosReadH, videosWriteH } from "./controllers/videos";
|
import { videosReadH, videosWriteH } from "./controllers/videos";
|
||||||
import { KError } from "./models/error";
|
import type { KError } from "./models/error";
|
||||||
|
|
||||||
export const base = new Elysia({ name: "base" })
|
export const base = new Elysia({ name: "base" })
|
||||||
.onError(({ code, error }) => {
|
.onError(({ code, error }) => {
|
||||||
|
|||||||
@ -804,7 +804,7 @@ export const videosReadH = new Elysia({ prefix: "/videos", tags: ["videos"] })
|
|||||||
422: KError,
|
422: KError,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
)
|
);
|
||||||
|
|
||||||
export const videosWriteH = new Elysia({ prefix: "/videos", tags: ["videos"] })
|
export const videosWriteH = new Elysia({ prefix: "/videos", tags: ["videos"] })
|
||||||
.model({
|
.model({
|
||||||
|
|||||||
@ -59,6 +59,7 @@ async def background_startup(
|
|||||||
_ = tg.create_task(scanner.monitor())
|
_ = tg.create_task(scanner.monitor())
|
||||||
_ = tg.create_task(scan())
|
_ = tg.create_task(scan())
|
||||||
|
|
||||||
|
|
||||||
async def cancel():
|
async def cancel():
|
||||||
raise CancelledError()
|
raise CancelledError()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user