diff options
author | crupest <crupest@outlook.com> | 2020-08-25 15:30:55 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-25 15:30:55 +0800 |
commit | 201f75e0c339d3745a1fdb43a9579d502c447710 (patch) | |
tree | 82a6b9acafdcad685fa306674cc934bd21d11280 /Timeline/ClientApp/src/app/user/api.ts | |
parent | 738a17688ca481db62755295f8b732200ca12511 (diff) | |
download | timeline-201f75e0c339d3745a1fdb43a9579d502c447710.tar.gz timeline-201f75e0c339d3745a1fdb43a9579d502c447710.tar.bz2 timeline-201f75e0c339d3745a1fdb43a9579d502c447710.zip |
Move change nickname api to UserInfoService.
Diffstat (limited to 'Timeline/ClientApp/src/app/user/api.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/user/api.ts | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Timeline/ClientApp/src/app/user/api.ts b/Timeline/ClientApp/src/app/user/api.ts deleted file mode 100644 index e69acbdb..00000000 --- a/Timeline/ClientApp/src/app/user/api.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { getHttpUserClient } from "../http/user"; -import { User } from "../data/user"; - -export function changeNickname( - token: string, - username: string, - newNickname: string -): Promise<User> { - return getHttpUserClient().patch(username, { nickname: newNickname }, token); -} |