Skip to content

Commit

Permalink
Merge pull request #29 from gisce/add-getserverenvirnoment
Browse files Browse the repository at this point in the history
feat: add get_server_environment call
  • Loading branch information
ecarreras authored Nov 13, 2024
2 parents 78a6b9b + 3c8a996 commit de45ab1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@ export class Client {
});
}

public async getServerEnvironment(
options?: RequestOptions,
): Promise<Record<string, string>> {
return await this._fetch({
service: "common",
payload: ["get_server_environment", true],
options,
});
}

public async getLoginMessage(options?: RequestOptions): Promise<string> {
const loginMessage = await this._fetch({
service: "common",
Expand Down

0 comments on commit de45ab1

Please sign in to comment.