You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just get confused as a 🔥Hono user. My issue is in the comment in the code.
constapi=newHono();constopenapi=fromHono(api,{// only use "base" option if schema.servers do not append nested route, like "https://api.example.com"// and okay with /v1/ everywhere on the Swagger UI// base: "/v1", // but here it is okay either use "/docs" or "docs",docs_url: "/docs",// must not use the default "/openapi.json" will not workopenapi_url: 'openapi.json',schema: {servers: [{// this must be set and the append the nested route, or "Try it out" button will breakurl: 'https://api.example.com/v1',}]}});// the final url for this endpoint will be "https://api.example.com/v1/api/tasks"openapi.get("/api/tasks",TaskList);constapp=newHono();app.route('/v1',api);
The text was updated successfully, but these errors were encountered:
I just get confused as a 🔥Hono user. My issue is in the comment in the code.
The text was updated successfully, but these errors were encountered: