mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-07 17:49:32 -06:00
separate public key handler (#64)
This commit is contained in:
parent
82d2544d7d
commit
b6c62309f2
8 changed files with 162 additions and 18 deletions
|
|
@ -60,6 +60,9 @@ var (
|
|||
// userPathRegex parses a path that validates and captures the username part from eg /users/example_username
|
||||
userPathRegex = regexp.MustCompile(userPathRegexString)
|
||||
|
||||
userPublicKeyPathRegexString = fmt.Sprintf(`^?/%s/(%s)/%s`, UsersPath, usernameRegexString, PublicKeyPath)
|
||||
userPublicKeyPathRegex = regexp.MustCompile(userPublicKeyPathRegexString)
|
||||
|
||||
inboxPathRegexString = fmt.Sprintf(`^/?%s/(%s)/%s$`, UsersPath, usernameRegexString, InboxPath)
|
||||
// inboxPathRegex parses a path that validates and captures the username part from eg /users/example_username/inbox
|
||||
inboxPathRegex = regexp.MustCompile(inboxPathRegexString)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue