Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit470481c

Browse files
committed
Switch back to mock
1 parentf5fe8e8 commit470481c

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
exportconstcreateUser=async(user:TypesGen.CreateUserRequest):Promise<TypesGen.User>=>{
89-
constresponse=awaitaxios.post<TypesGen.User>("/api/v2/users",user)
90-
returnresponse.data
89+
// const response = await axios.post<TypesGen.User>("/api/v2/users", user)
90+
// return response.data
91+
returnPromise.resolve(MockUser)
9192
}
9293

9394
exportconstgetBuildInfo=async():Promise<Types.BuildInfoResponse>=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp