mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
refactor(api): ♻️ Remove useless authorization checks
This commit is contained in:
parent
dc12b269f5
commit
09f30db83a
59 changed files with 103 additions and 839 deletions
|
|
@ -349,8 +349,8 @@ async function parseUrlEncoded(context: Context): Promise<ParsedQs> {
|
|||
return parsed;
|
||||
}
|
||||
|
||||
export const qsQuery = (): MiddlewareHandler => {
|
||||
return createMiddleware(async (context, next) => {
|
||||
export const qsQuery = (): MiddlewareHandler<HonoEnv> => {
|
||||
return createMiddleware<HonoEnv>(async (context, next) => {
|
||||
const parsed = parse(new URL(context.req.url).searchParams.toString(), {
|
||||
parseArrays: true,
|
||||
interpretNumericEntities: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue