This website works better with JavaScript.
Home
Explore
Help
Sign In
p3k
/
Teacup
mirror of
https://github.com/aaronpk/Teacup.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
more strict matching of routes
pull/10/head
Aaron Parecki
9 years ago
parent
ca50a690d7
commit
c3f311b928
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
controllers/controllers.php
+ 4
- 1
controllers/controllers.php
View File
@ -280,7 +280,10 @@ $app->get('/:domain/:entry', function($domain, $entry_id) use($app) {
'user'
=>
$user
));
$app
->
response
()
->
body
(
$html
);
});
})
->
conditions
(
array
(
'domain'
=>
'[a-zA-Z0-9\.-]+\.[a-z]+'
,
'entry'
=>
'\d+'
));
Write
Preview
Loading…
Cancel
Save