diff options
author | crupest <crupest@outlook.com> | 2020-08-24 22:59:45 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-24 22:59:45 +0800 |
commit | cc0cc154b9506d1961d08cb29fbc29ad815bad69 (patch) | |
tree | a50e492d784a553c4fb7bc016819f872c2382247 /Timeline/ClientApp/src/app/user/api.ts | |
parent | 13cf2ab0598adb291066ef64a7b377909ef58525 (diff) | |
download | timeline-cc0cc154b9506d1961d08cb29fbc29ad815bad69.tar.gz timeline-cc0cc154b9506d1961d08cb29fbc29ad815bad69.tar.bz2 timeline-cc0cc154b9506d1961d08cb29fbc29ad815bad69.zip |
...
Diffstat (limited to 'Timeline/ClientApp/src/app/user/api.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/user/api.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Timeline/ClientApp/src/app/user/api.ts b/Timeline/ClientApp/src/app/user/api.ts index b2026861..e69acbdb 100644 --- a/Timeline/ClientApp/src/app/user/api.ts +++ b/Timeline/ClientApp/src/app/user/api.ts @@ -1,10 +1,10 @@ -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);
-}
+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); +} |