api pages by tags sorting key
This commit is contained in:
1 parent
348c3baba8
commit
d859fdb302
2 files changed
+24
-2
No files matched your search
@@ -39,6 +39,10 @@ export function readQueryInt(req: Request, key: string) {
|
||||
return int(req.query[key]) || 0
|
||||
}
|
||||
|
||||
export function readQueryString(req: Request, key: string) {
|
||||
return `${req.query[key]}`
|
||||
}
|
||||
|
||||
export function readQueryArray(req: Request, key: string) {
|
||||
return ensureArray(req.query[key])
|
||||
}
|
||||
Reference in new issue
Block a user