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
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ const {fetchUser} = require("../../lib/collectors")
const {render} = require("pinski/plugins")
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 user = await fetchUser(fill[0])
const page = +params.get("page")