Show auth success
This commit is contained in:
parent
1403961a09
commit
7a8cca8fe7
4 changed files with 34 additions and 7 deletions
|
|
@ -26,7 +26,14 @@ export class SyncServer {
|
|||
}
|
||||
|
||||
public async ping(): Promise<components["schemas"]["PingResponse"]> {
|
||||
const response = await this.client.GET("/ping");
|
||||
const response = await this.client.GET("/ping", {
|
||||
params: {
|
||||
header: {
|
||||
authorization:
|
||||
"Bearer " + this.database.getSettings().token,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Logger.getInstance().info(
|
||||
"Ping response: " + JSON.stringify(response.data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue