mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
9e9e961390
commit
7e0cedae3d
3 changed files with 13 additions and 0 deletions
|
|
@ -438,7 +438,9 @@ def app_factory(files, num_threads=3):
|
|||
])
|
||||
)
|
||||
app.add_route(IndexView.as_view(files, jinja, executor), '/')
|
||||
# TODO: /favicon.ico and /-/static/ deserve far-future cache expires
|
||||
app.add_route(favicon, '/favicon.ico')
|
||||
app.static('/-/static/', str(app_root / 'immutabase' / 'static'))
|
||||
app.add_route(
|
||||
DatabaseView.as_view(files, jinja, executor),
|
||||
'/<db_name:[^/\.]+?><as_json:(.jsono?)?$>'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue