Only serve index on root path
This commit is contained in:
parent
a2cf8bbbd5
commit
c14b909a8c
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ fn handle_request(
|
|||
use req <- app_middleware(req, static_directory)
|
||||
case req.method, wisp.path_segments(req) {
|
||||
Post, ["api", "geofeed"] -> handle_save_geofeed(req, geofeed_path)
|
||||
Get, _ -> serve_index(geofeed_path)
|
||||
Get, [] | Get, ["index.html"] -> serve_index(geofeed_path)
|
||||
_, _ -> wisp.not_found()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue