make the endpoints at request time #9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "serve-on-request"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
partiallyaddresses #8.the old server flow was:
index.html
to be in root/
the new flow:1. request server start2. make an endpoint forindex.html
to be in root/
3. when a request is made, the fallback function is called with a bind being the endpoint4. open file in the server directory if it exists, if not, or if reading the file fails, return 500.since
e44cac165a
, godot-http-server was synced with upstream (where relevant), the binds system was deprecated, and the flow is updated to not use the fallback function:_serve_file()
function/
, replace the file path withindex.html
.this also gave me an idea: in the future, it would be cool to specify custom error pages