From dd6c857a56347e62b78bb94d1d0d1a3710bef7a2 Mon Sep 17 00:00:00 2001 From: Alberto Defendi <1369-ahl-berto@users.noreply.gitlab.inf.unibz.it> Date: Thu, 6 May 2021 09:46:51 +0200 Subject: [PATCH] Define further entrypoints here and reuse those across components. --- src/api/EntryPoint.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/api/EntryPoint.ts diff --git a/src/api/EntryPoint.ts b/src/api/EntryPoint.ts new file mode 100644 index 0000000..c3ef802 --- /dev/null +++ b/src/api/EntryPoint.ts @@ -0,0 +1,8 @@ +/** + * Contains server api entrypoints. + * Every server api call must be defined here and then used in the code. + */ +export enum EntryPoint { + login = '/api/web/login', + seniors = 'api/web/seniors/', +} -- GitLab