add admin head.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import http from "utils/http"
|
||||
import { Profile } from "~/utils/types"
|
||||
|
||||
export function login(data: { username: string; password: string }) {
|
||||
return http.post("login", data)
|
||||
@@ -9,5 +10,5 @@ export function logout() {
|
||||
}
|
||||
|
||||
export function getProfile(username: string = "") {
|
||||
return http.get("profile", { params: { username } })
|
||||
return http.get<Profile>("profile", { params: { username } })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user