1 parent 753ff9c commit be83c70Copy full SHA for be83c70
1 file changed
frontend/src/services/auth.ts
@@ -1,6 +1,8 @@
1
-import api from '../api/axios';
+import { AuthenticationApi } from '@/api';
2
+
3
+const authApi = new AuthenticationApi();
4
5
export async function login(username: string) {
- const response = await api.post('/auth/login', { username });
6
+ const response = await authApi.loginAuthLoginPost({ username });
7
return response.data;
8
}
0 commit comments