aboutsummaryrefslogtreecommitdiff
path: root/examples/http-server/http-server.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-16 19:25:59 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-16 19:25:59 -0400
commit3a73ac521cfef932e8a98c1ff39616cf877e5de0 (patch)
tree195e188dfb89a2ecc2ce3234af516b1d174fab73 /examples/http-server/http-server.tm
parent39b463ff60ea172d5f538310ec4e26b2a5427fb7 (diff)
Roll back change to add a return for unreachable functions
Diffstat (limited to 'examples/http-server/http-server.tm')
-rw-r--r--examples/http-server/http-server.tm1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/http-server/http-server.tm b/examples/http-server/http-server.tm
index 4c04491a..80774bff 100644
--- a/examples/http-server/http-server.tm
+++ b/examples/http-server/http-server.tm
@@ -112,7 +112,6 @@ enum RouteEntry(ServeFile(file:Path), Redirect(destination:Text))
return HTTPResponse(body, content_type=_content_type(file))
is Redirect(destination)
return HTTPResponse("Found", 302, headers={"Location"=destination})
- return HTTPResponse("Unreachable", 500)
func load_routes(directory:Path -> {Text=RouteEntry})
routes : &{Text=RouteEntry}