You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POST /api/v1/auth/register
{
"fullName": "Nguyen Van A",
"email": "nguyenvana@example.com",
"password": "Password123"
}
Đăng nhập
POST /api/v1/auth/login
{
"email": "nguyenvana@example.com",
"password": "Password123"
}
Gọi API có bảo vệ
GET /api/v1/auth/me
Authorization: Bearer <access_token>
🛡️ Roles
Role
Mô tả
admin
Toàn quyền
manager
Quản lý
staff
Nhân viên
user
Người dùng thường
🔧 Scripts
npm run start:dev # Development với hot reload
npm run build # Build production
npm run start:prod # Chạy production build
npm run lint # Kiểm tra lint
npm run test# Chạy unit tests