♻️ Rework authentication
- Move login endpoint `/login` to `/auth/login` - Add logout route `/auth/logout` - Add `/api/token` endpoint and `?token=` query parameter for auth - Refactor `auth.js`
This commit is contained in:
@ -59,7 +59,7 @@ export default defineConfig({
|
||||
target: "http://localhost:3000",
|
||||
changeOrigin: true,
|
||||
},
|
||||
"/login": {
|
||||
"/auth": {
|
||||
target: "http://localhost:3000",
|
||||
changeOrigin: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user