mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Initial prototype of create API token page, refs #1852
This commit is contained in:
parent
f9ae92b377
commit
42f8b402e6
3 changed files with 142 additions and 0 deletions
|
|
@ -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$",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue