implement cron page (#7)

This commit is contained in:
UUBulb
2024-11-20 00:19:40 +08:00
committed by GitHub
parent a487e6cb99
commit 0e4bcd3938
20 changed files with 555 additions and 28 deletions
+2 -2
View File
@@ -2,9 +2,9 @@ import { ModelUser } from "@/types"
import { fetcher, FetcherMethod } from "./api"
export const getProfile = async (): Promise<ModelUser> => {
return fetcher<ModelUser>(FetcherMethod.GET, '/api/v1/profile', null)
return fetcher<ModelUser>(FetcherMethod.GET, '/api/v1/profile', null);
}
export const login = async (username: string, password: string): Promise<any> => {
return fetcher<any>(FetcherMethod.POST, '/api/v1/login', { username, password })
return fetcher<any>(FetcherMethod.POST, '/api/v1/login', { username, password });
}