♻️ 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:
2023-01-01 17:11:42 +01:00
parent 8c8a45aae3
commit e2e3113b5b
4 changed files with 96 additions and 27 deletions

View File

@ -59,7 +59,7 @@ export default defineConfig({
target: "http://localhost:3000",
changeOrigin: true,
},
"/login": {
"/auth": {
target: "http://localhost:3000",
changeOrigin: true,
},