https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4e8368
)
add regex for route
author
nupplaPhil
<admin+github@philipp.info>
Fri, 31 Jan 2020 23:22:56 +0000
(
00:22
+0100)
committer
nupplaPhil
<admin+github@philipp.info>
Fri, 31 Jan 2020 23:22:56 +0000
(
00:22
+0100)
static/routes.config.php
patch
|
blob
|
history
diff --git
a/static/routes.config.php
b/static/routes.config.php
index
f3e8fdf
..
eaaa3bd
100644
(file)
--- a/
static/routes.config.php
+++ b/
static/routes.config.php
@@
-128,7
+128,8
@@
return [
'/followers/{owner}' => [Module\Followers::class, [R::GET]],
'/following/{owner}' => [Module\Following::class, [R::GET]],
'/friendica[/json]' => [Module\Friendica::class, [R::GET]],
- '/fsuggest/{contact}' => [Module\FriendSuggest::class, [R::GET, R::POST]],
+
+ '/fsuggest/{contact:\d+}' => [Module\FriendSuggest::class, [R::GET, R::POST]],
'/group' => [
'[/]' => [Module\Group::class, [R::GET, R::POST]],