File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ import { HTTPException } from "hono/http-exception";
8
8
import { GATEWAY_GITHUB_ROUTER } from "./routes/gateway_github" ;
9
9
import { RANDOM_EMOJI_ROUTER } from "./routes/random-emoji" ;
10
10
import { V1_CATEGORIES_ROUTER } from "./routes/v1_categories" ;
11
+ import { V1_RAW_ROUTER } from "./routes/v1_raw" ;
11
12
import { V1_VERSIONS_ROUTER } from "./routes/v1_versions" ;
12
13
13
14
const app = new OpenAPIHono < HonoContext > ( ) ;
14
15
15
16
app . route ( "/" , V1_VERSIONS_ROUTER ) ;
16
17
app . route ( "/" , V1_CATEGORIES_ROUTER ) ;
18
+ app . route ( "/" , V1_RAW_ROUTER ) ;
17
19
app . route ( "/" , GATEWAY_GITHUB_ROUTER ) ;
18
20
app . route ( "/" , RANDOM_EMOJI_ROUTER ) ;
19
21
@@ -77,8 +79,8 @@ app.doc("/openapi.json", (c) => {
77
79
} ,
78
80
tags : [
79
81
{
80
- name : "Emoji " ,
81
- description : "Emoji related endpoints" ,
82
+ name : "Categories " ,
83
+ description : "Categories related endpoints" ,
82
84
} ,
83
85
{
84
86
name : "Versions" ,
@@ -88,6 +90,10 @@ app.doc("/openapi.json", (c) => {
88
90
name : "Gateway" ,
89
91
description : "Gateway related endpoints" ,
90
92
} ,
93
+ {
94
+ name : "Raw" ,
95
+ description : "Raw data related endpoints" ,
96
+ } ,
91
97
] ,
92
98
servers : [
93
99
server ,
Original file line number Diff line number Diff line change
1
+ import type { HonoContext } from "../../types" ;
2
+ import { OpenAPIHono } from "@hono/zod-openapi" ;
3
+
4
+ export const V1_RAW_ROUTER = new OpenAPIHono < HonoContext > ( ) . basePath ( "/api/v1/raw" ) ;
You can’t perform that action at this time.
0 commit comments