mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Slight simplification of /-/inspect
This commit is contained in:
parent
8e0f072847
commit
e10f8e1274
1 changed files with 1 additions and 1 deletions
|
|
@ -1446,7 +1446,7 @@ class Datasette:
|
||||||
modpath = '/-/static-plugins/{}/'.format(plugin['name'])
|
modpath = '/-/static-plugins/{}/'.format(plugin['name'])
|
||||||
app.static(modpath, plugin['static_path'])
|
app.static(modpath, plugin['static_path'])
|
||||||
app.add_route(
|
app.add_route(
|
||||||
JsonDataView.as_view(self, 'inspect.json', lambda: self.inspect()),
|
JsonDataView.as_view(self, 'inspect.json', self.inspect),
|
||||||
'/-/inspect<as_json:(\.json)?$>'
|
'/-/inspect<as_json:(\.json)?$>'
|
||||||
)
|
)
|
||||||
app.add_route(
|
app.add_route(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue