mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-09-07 19:05:09 -05:00
Add friend code URL to API proxy
This commit is contained in:
@@ -111,8 +111,9 @@ export default class ZncProxyApi implements CoralApi {
|
||||
return {status: CoralStatus.OK as const, result: response.user, correlationId: ''};
|
||||
}
|
||||
|
||||
async getFriendCodeUrl(): Promise<CoralSuccessResponse<FriendCodeUrl>> {
|
||||
throw new Error('Not supported in ZncProxyApi');
|
||||
async getFriendCodeUrl() {
|
||||
const response = await this.fetch<{friendcode: FriendCodeUrl}>('/friendcode');
|
||||
return {status: CoralStatus.OK as const, result: response.friendcode, correlationId: ''};
|
||||
}
|
||||
|
||||
async getCurrentUserPermissions() {
|
||||
|
||||
Reference in New Issue
Block a user