From 5501ee78324a8610f7e8721eb15b89df89d22a50 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 23 Aug 2018 08:55:16 +0200 Subject: [PATCH] Simplify signOff rest --- src/core/client/framework/lib/rest.ts | 5 ++++- src/core/client/framework/rest/signOff.ts | 5 +---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/client/framework/lib/rest.ts b/src/core/client/framework/lib/rest.ts index 9808a4555..c08e3c995 100644 --- a/src/core/client/framework/lib/rest.ts +++ b/src/core/client/framework/lib/rest.ts @@ -48,7 +48,10 @@ export class RestClient { this.tokenGetter = tokenGetter; } - public async fetch(path: string, options: PartialRequestInit): Promise { + public async fetch( + path: string, + options: PartialRequestInit + ): Promise { let opts = options; if (this.tokenGetter) { opts = merge({}, options, { diff --git a/src/core/client/framework/rest/signOff.ts b/src/core/client/framework/rest/signOff.ts index d181bd280..5a1904d7c 100644 --- a/src/core/client/framework/rest/signOff.ts +++ b/src/core/client/framework/rest/signOff.ts @@ -1,10 +1,7 @@ import { RestClient } from "../lib/rest"; -// tslint:disable-next-line:no-empty-interface -export interface SignOffResponse {} - export default function signOff(rest: RestClient) { - return rest.fetch("/tenant/auth/local", { + return rest.fetch("/tenant/auth/local", { method: "DELETE", }); }