aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/world/net/http/route.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/world/net/http/route.lux')
-rw-r--r--stdlib/source/lux/world/net/http/route.lux6
1 files changed, 4 insertions, 2 deletions
diff --git a/stdlib/source/lux/world/net/http/route.lux b/stdlib/source/lux/world/net/http/route.lux
index 766d28fa5..9210dc67c 100644
--- a/stdlib/source/lux/world/net/http/route.lux
+++ b/stdlib/source/lux/world/net/http/route.lux
@@ -6,7 +6,9 @@
["." promise]]]
[data
["." maybe]
- ["." text ("#;." equivalence)]]]
+ ["." text ("#;." equivalence)]
+ [number
+ ["n" nat]]]]
["." // (#+ URI Server)
["#." status]
["#." response]])
@@ -66,6 +68,6 @@
(do promise.monad
[response (primary request)
#let [[status message] response]]
- (if (n/= //status.not-found status)
+ (if (n.= //status.not-found status)
(alternative request)
(wrap response)))))