From 869f9c229de3a8d17c95a3a315695d0a57a0c50f Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 25 Jul 2023 16:52:36 +0200 Subject: [PATCH] added endpoint to frontend ape client --- frontend/src/ts/ape/endpoints/quotes.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/ts/ape/endpoints/quotes.ts b/frontend/src/ts/ape/endpoints/quotes.ts index f27d72a63..aac9cdc4e 100644 --- a/frontend/src/ts/ape/endpoints/quotes.ts +++ b/frontend/src/ts/ape/endpoints/quotes.ts @@ -9,6 +9,10 @@ export default class Quotes { return await this.httpClient.get(BASE_PATH); } + async isSubmissionEnabled(): Ape.EndpointData { + return await this.httpClient.get(`${BASE_PATH}/isSubmissionEnabled`); + } + async submit( text: string, source: string,