mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Initial prototype of API explorer at /-/api, refs #1871
This commit is contained in:
parent
c35859ae3d
commit
f6bf2d8045
4 changed files with 87 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ from .views.special import (
|
|||
JsonDataView,
|
||||
PatternPortfolioView,
|
||||
AuthTokenView,
|
||||
ApiExplorerView,
|
||||
CreateTokenView,
|
||||
LogoutView,
|
||||
AllowDebugView,
|
||||
|
|
@ -1235,6 +1236,10 @@ class Datasette:
|
|||
CreateTokenView.as_view(self),
|
||||
r"/-/create-token$",
|
||||
)
|
||||
add_route(
|
||||
ApiExplorerView.as_view(self),
|
||||
r"/-/api$",
|
||||
)
|
||||
add_route(
|
||||
LogoutView.as_view(self),
|
||||
r"/-/logout$",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue