feat: add auth module with login and access control
This commit is contained in:
8
web/src/services/auth.js
Normal file
8
web/src/services/auth.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { apiRequest } from './api.js'
|
||||
|
||||
export function login(payload) {
|
||||
return apiRequest('/auth/login', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(payload)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user