mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
Support period in /u/ route
This commit is contained in:
parent
97a21ed320
commit
38eaed293b
@ -2,7 +2,7 @@ const {fetchUser} = require("../../lib/collectors")
|
|||||||
const {render} = require("pinski/plugins")
|
const {render} = require("pinski/plugins")
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
{route: "/u/(\\w+)", methods: ["GET"], code: async ({url, fill}) => {
|
{route: "/u/([\\w.]+)", methods: ["GET"], code: async ({url, fill}) => {
|
||||||
const params = url.searchParams
|
const params = url.searchParams
|
||||||
const user = await fetchUser(fill[0])
|
const user = await fetchUser(fill[0])
|
||||||
const page = +params.get("page")
|
const page = +params.get("page")
|
||||||
|
Loading…
Reference in New Issue
Block a user