Initial prototype of create API token page, refs #1852

This commit is contained in:
Simon Willison 2022-10-25 17:07:58 -07:00
commit 42f8b402e6
3 changed files with 142 additions and 0 deletions

View file

@ -33,6 +33,7 @@ from .views.special import (
JsonDataView,
PatternPortfolioView,
AuthTokenView,
CreateTokenView,
LogoutView,
AllowDebugView,
PermissionsDebugView,
@ -1212,6 +1213,10 @@ class Datasette:
AuthTokenView.as_view(self),
r"/-/auth-token$",
)
add_route(
CreateTokenView.as_view(self),
r"/-/create-token$",
)
add_route(
LogoutView.as_view(self),
r"/-/logout$",