summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2017-11-15 20:16:23 +0000
committerAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2017-11-15 20:16:23 +0000
commit81e58832811e233fe91203dd2f8fa2fead58cc89 (patch)
tree0dc2c3d6816beee3fa811c7bdd4e87cd1c6db2a8 /web
parenta610280448e57ce1f48badaf6a6c2165e8a8f99e (diff)
downloadlabitrack-81e58832811e233fe91203dd2f8fa2fead58cc89.tar.gz
labitrack-81e58832811e233fe91203dd2f8fa2fead58cc89.tar.xz
labitrack-81e58832811e233fe91203dd2f8fa2fead58cc89.zip
2013: fix pattern captures
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
Diffstat (limited to 'web')
-rwxr-xr-xweb/labitrackd.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/web/labitrackd.lua b/web/labitrackd.lua
index fbea3c2..133050e 100755
--- a/web/labitrackd.lua
+++ b/web/labitrackd.lua
@@ -169,15 +169,15 @@ hathaway.import()
local htmlpage = sendfile('text/html; charset=UTF-8', 'pub/index.html')
-GET('/', htmlpage)
-GET('/browse', htmlpage)
-GETM('^/browse/page/%d+$', htmlpage)
-GET('/recent', htmlpage)
-GET('/about', htmlpage)
-GETM('^/view/%d+$', htmlpage)
-GETM('^/edit/%d+$', htmlpage)
-GET('/search', htmlpage)
-GETM('^/search/', htmlpage)
+GET('/', htmlpage)
+GET('/browse', htmlpage)
+GETM('^/browse/page/(%d+)$', htmlpage)
+GET('/recent', htmlpage)
+GET('/about', htmlpage)
+GETM('^/view/(%d+)$', htmlpage)
+GETM('^/edit/(%d+)$', htmlpage)
+GET('/search', htmlpage)
+GETM('^/search/', htmlpage)
GET('/js/corelibs.min.js', sendfile_js('js/dist/corelibs.min.js'))
GET('/js/corelibs.src.js', sendfile_js('js/dist/corelibs.src.js'))