feat: JWT 登录与用户接口

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-15 14:01:59 +08:00
parent 77a7f568b2
commit 754ae1d39d
3 changed files with 167 additions and 0 deletions
+8
View File
@@ -1,6 +1,14 @@
from django.urls import path
from tracker.api.collect import CollectBatchView
from tracker.api.auth import LoginView, RefreshView, MeView, UserCreateView
urlpatterns = [
path("api/collect/batch", CollectBatchView.as_view()),
]
urlpatterns += [
path("api/admin/auth/token", LoginView.as_view()),
path("api/admin/auth/refresh", RefreshView.as_view()),
path("api/admin/auth/me", MeView.as_view()),
path("api/admin/users", UserCreateView.as_view()),
]