feat: use get workspace profile in frontend

This commit is contained in:
Steven
2023-09-21 08:46:48 +08:00
parent 58cb5c7e2e
commit 8f17abdbf0
13 changed files with 59 additions and 75 deletions

View File

@@ -1,10 +1,6 @@
import axios from "axios";
import { userServiceClient } from "@/grpcweb";
export function getWorkspaceProfile() {
return axios.get<WorkspaceProfile>("/api/v1/workspace/profile");
}
export function signin(email: string, password: string) {
return axios.post<User>("/api/v1/auth/signin", {
email,