♻️ refactor: align bulk-insert implementation with latest Elysia standards
This commit is contained in:
@ -7,13 +7,14 @@ import { updateAllEpisodeThumbnailController } from "./controllers/updateAllEpis
|
||||
import { purgeUnusedSessionController } from "./controllers/purgeUnusedSession.controller";
|
||||
import { createHeroBannerController } from "./controllers/createHeroBanner.controller";
|
||||
import { bulkInsertMediaSchema } from "./schemas/bulkInsertMedia.schema";
|
||||
import { bulkInsertEpisodeSchema } from "./schemas/bulkInsertEpisode.schema";
|
||||
|
||||
export const internalModule = new Elysia({
|
||||
prefix: "/internal",
|
||||
tags: ["Internal"],
|
||||
})
|
||||
.post("/media/bulk-insert", bulkInsertMediaController, bulkInsertMediaSchema)
|
||||
.post("/episode/bulk-insert", bulkInsertEpisodeController)
|
||||
.post("/episode/bulk-insert", bulkInsertEpisodeController, bulkInsertEpisodeSchema)
|
||||
.put("/episode/update-thumbnails", updateAllEpisodeThumbnailController)
|
||||
.post("/video/bulk-insert", bulkInsertVideoController)
|
||||
.post("/video-service", createVideoServiceInternalController)
|
||||
|
||||
Reference in New Issue
Block a user