Skip to content

Commit 470481c

Browse files
committed
Switch back to mock
1 parent f5fe8e8 commit 470481c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

site/src/api/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ export const getUsers = async (): Promise<Types.PagedUsers> => {
8686
}
8787

8888
export const createUser = async (user: TypesGen.CreateUserRequest): Promise<TypesGen.User> => {
89-
const response = await axios.post<TypesGen.User>("/api/v2/users", user)
90-
return response.data
89+
// const response = await axios.post<TypesGen.User>("/api/v2/users", user)
90+
// return response.data
91+
return Promise.resolve(MockUser)
9192
}
9293

9394
export const getBuildInfo = async (): Promise<Types.BuildInfoResponse> => {

0 commit comments

Comments
 (0)