kopia lustrzana https://github.com/simonw/datasette
Preserve .json through redirects
rodzic
d94d4465d7
commit
f1b0521810
2
app.py
2
app.py
|
@ -280,6 +280,8 @@ def resolve_db_name(db_name, **kwargs):
|
|||
)
|
||||
if 'table' in kwargs:
|
||||
should_redirect += '/' + kwargs['table']
|
||||
if 'as_json' in kwargs:
|
||||
should_redirect += kwargs['as_json']
|
||||
return name, expected, should_redirect
|
||||
return name, expected, None
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue