feat: add auth module with login and access control

This commit is contained in:
2026-05-07 14:34:42 +08:00
parent 2d56bc2889
commit b8ba0ea6a0
15 changed files with 501 additions and 34 deletions

8
web/src/services/auth.js Normal file
View File

@@ -0,0 +1,8 @@
import { apiRequest } from './api.js'
export function login(payload) {
return apiRequest('/auth/login', {
method: 'POST',
body: JSON.stringify(payload)
})
}