diff options
author | crupest <crupest@outlook.com> | 2020-08-25 16:08:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 16:08:11 +0800 |
commit | 03ad387a8d71545995c0cc91bfb64acd388529f7 (patch) | |
tree | 15dc77bbff09925a6e7fdce164c46c2d7ff441f3 /Timeline/ClientApp/src/app/user/api.ts | |
parent | 2867b65d2215ea89cca0e5c5cfbb536d08f60263 (diff) | |
parent | 534bb6739d0d217c2b075834a2642092522cc5fd (diff) | |
download | timeline-03ad387a8d71545995c0cc91bfb64acd388529f7.tar.gz timeline-03ad387a8d71545995c0cc91bfb64acd388529f7.tar.bz2 timeline-03ad387a8d71545995c0cc91bfb64acd388529f7.zip |
Merge pull request #155 from crupest/nickname
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); -} |