diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/library/lux/world/net/http/route.lux | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/library/lux/world/net/http/route.lux b/stdlib/source/library/lux/world/net/http/route.lux index 39d66cba0..a390c51bb 100644 --- a/stdlib/source/library/lux/world/net/http/route.lux +++ b/stdlib/source/library/lux/world/net/http/route.lux @@ -23,7 +23,7 @@ (server request) _ - (async.resolved //response.not-found))))] + (async.resolved //response.not_found))))] [#//.HTTP http] [#//.HTTPS https] @@ -38,7 +38,7 @@ (server request) _ - (async.resolved //response.not-found))))] + (async.resolved //response.not_found))))] [#//.Get get] [#//.Post post] @@ -54,14 +54,14 @@ (def: #export (uri path server) (-> URI Server Server) (function (_ [identification protocol resource message]) - (if (text.starts-with? path (get@ #//.uri resource)) + (if (text.starts_with? path (get@ #//.uri resource)) (server [identification protocol (update@ #//.uri (|>> (text.clip' (text.size path)) maybe.assume) resource) message]) - (async.resolved //response.not-found)))) + (async.resolved //response.not_found)))) (def: #export (or primary alternative) (-> Server Server Server) @@ -69,6 +69,6 @@ (do async.monad [response (primary request) #let [[status message] response]] - (if (n.= //status.not-found status) + (if (n.= //status.not_found status) (alternative request) (in response))))) |