Skip to content

Commit be83c70

Browse files
committed
adapt auth.ts to generated apis
1 parent 753ff9c commit be83c70

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

frontend/src/services/auth.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import api from '../api/axios';
1+
import { AuthenticationApi } from '@/api';
2+
3+
const authApi = new AuthenticationApi();
24

35
export async function login(username: string) {
4-
const response = await api.post('/auth/login', { username });
6+
const response = await authApi.loginAuthLoginPost({ username });
57
return response.data;
68
}

0 commit comments

Comments
 (0)