mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
base_url configuration setting, closes #394
* base_url configuration setting * base_url works for static assets as well
This commit is contained in:
parent
2a36dfa2a8
commit
7656fd64d8
15 changed files with 104 additions and 28 deletions
|
|
@ -110,6 +110,9 @@ class AsgiRouter:
|
|||
raw_path = scope.get("raw_path")
|
||||
if raw_path:
|
||||
path = raw_path.decode("ascii")
|
||||
return await self.route_path(scope, receive, send, path)
|
||||
|
||||
async def route_path(self, scope, receive, send, path):
|
||||
for regex, view in self.routes:
|
||||
match = regex.match(path)
|
||||
if match is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue