File tree Expand file tree Collapse file tree 11 files changed +14
-65
lines changed
Expand file tree Collapse file tree 11 files changed +14
-65
lines changed Original file line number Diff line number Diff line change 11import { Hono } from "hono" ;
22import { describeRoute } from "hono-openapi" ;
33import { resolver } from "hono-openapi/zod" ;
4+ import { validator } from "shared/hono/middleware" ;
45import { z } from "zod" ;
56import { auth } from "../middleware" ;
67import {
@@ -14,7 +15,6 @@ import {
1415 assetsPaginatedSchema ,
1516 groupsSchema ,
1617} from "../schemas/assets" ;
17- import { validator } from "../validator" ;
1818
1919export const assetsApp = new Hono ( )
2020 . use ( auth ( ) )
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ import {
1212import { Hono } from "hono" ;
1313import { describeRoute } from "hono-openapi" ;
1414import { resolver } from "hono-openapi/zod" ;
15+ import { validator } from "shared/hono/middleware" ;
1516import { z } from "zod" ;
1617import { apiError } from "../errors" ;
1718import { auth } from "../middleware" ;
1819import { getJob , getJobLogs , getJobs } from "../repositories/jobs" ;
1920import { jobSchema , jobsPaginatedSchema } from "../schemas/jobs" ;
20- import { validator } from "../validator" ;
2121
2222const inputSchema = z . discriminatedUnion ( "type" , [
2323 z . object ( {
Original file line number Diff line number Diff line change 11import { Hono } from "hono" ;
22import { describeRoute } from "hono-openapi" ;
33import { resolver } from "hono-openapi/zod" ;
4+ import { validator } from "shared/hono/middleware" ;
45import { z } from "zod" ;
56import { apiError } from "../errors" ;
67import { auth } from "../middleware" ;
@@ -13,7 +14,6 @@ import {
1314 getStorageFileUrl ,
1415 getStorageFolder ,
1516} from "../utils/s3" ;
16- import { validator } from "../validator" ;
1717
1818export const storageApp = new Hono ( )
1919 . use ( auth ( ) )
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import { Hono } from "hono";
22import { sign } from "hono/jwt" ;
33import { describeRoute } from "hono-openapi" ;
44import { resolver } from "hono-openapi/zod" ;
5+ import { validator } from "shared/hono/middleware" ;
56import { z } from "zod" ;
67import { env } from "../env" ;
78import { apiError } from "../errors" ;
89import { getUserIdByCredentials } from "../repositories/users" ;
9- import { validator } from "../validator" ;
1010
1111export const tokenApp = new Hono ( )
1212 /**
Original file line number Diff line number Diff line change 11import { Hono } from "hono" ;
22import { DateTime } from "luxon" ;
3+ import { validator } from "shared/hono/middleware" ;
34import { z } from "zod" ;
45import { getAppContext } from "../app-context" ;
56import {
89 formatMediaPlaylist ,
910} from "../playlist" ;
1011import { getSession } from "../session" ;
11- import { validator } from "../validator" ;
1212import type { Filter } from "../filters" ;
1313
1414export const outApp = new Hono ( )
Original file line number Diff line number Diff line change 11import { Hono } from "hono" ;
22import { describeRoute } from "hono-openapi" ;
33import { resolver } from "hono-openapi/zod" ;
4+ import { validator } from "shared/hono/middleware" ;
45import { z } from "zod" ;
56import { getAppContext } from "../app-context" ;
67import { createMasterUrl } from "../playlist" ;
78import { createSession } from "../session" ;
8- import { validator } from "../validator" ;
99
1010export const sessionsApp = new Hono ( ) . post (
1111 "/" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44 "version" : " 1.0.0" ,
55 "type" : " module" ,
66 "exports" : {
7- "./env" : " ./src/env.ts" ,
8- "./lang" : " ./src/lang.ts" ,
7+ "./hono/middleware" : " ./src/hono/middleware.ts" ,
98 "./assert" : " ./src/assert.ts"
109 },
1110 "scripts" : {
1211 "lint" : " tsc && eslint"
1312 },
1413 "dependencies" : {
15- "dotenv " : " ^16.4.5 " ,
16- "find-config " : " ^1.0.0 " ,
14+ "hono " : " ^4.7.1 " ,
15+ "hono-openapi " : " ^0.4.4 " ,
1716 "zod" : " ^3.24.2"
1817 },
1918 "devDependencies" : {
20- "@types/find-config" : " ^1.0.4" ,
2119 "config" : " workspace:*" ,
2220 "eslint" : " ^9.14.0" ,
2321 "typescript" : " ^5.6.3"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments