diff options
Diffstat (limited to 'weeb')
| -rw-r--r-- | weeb/router.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/weeb/router.scm b/weeb/router.scm index 689084a..20f129d 100644 --- a/weeb/router.scm +++ b/weeb/router.scm @@ -37,7 +37,10 @@ (substring template 1 (- (string-length template) 1)) (substring template 1)) #\/))) - (values (string-append "/" (string-join (map cadr components) "/")) + (values (string-append "^/" + (string-join (map cadr components) "/") + (if trailing-slash? "/?" "") + "$") (filter symbol? (map car components)))) (define (handle-route request route-object) |