1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 16:17:29 +00:00

Support period in /u/ route

This commit is contained in:
Cadence Fish 2020-01-13 04:01:00 +13:00
parent 97a21ed320
commit 38eaed293b
No known key found for this signature in database
GPG Key ID: 81015DF9AA8607E1

View File

@ -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")