You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
700 B
28 lines
700 B
export const IDP_URL =
|
|
"https://codefirst.iut.uca.fr/containers/Optifit-optifit-ef-api/api/v1";
|
|
export const API_URL =
|
|
"https://codefirst.iut.uca.fr/containers/Optifit-optifit-ef-api/api/v1";
|
|
|
|
export const CLIENT_ID = "mobile-app";
|
|
export const CLIENT_SECRET = "super-secret";
|
|
|
|
export const SCOPES =
|
|
"openid profile training.generate training.read offline_access";
|
|
|
|
export const ACCESS_TOKEN_PATH = "access-token";
|
|
export const REFRESH_TOKEN_PATH = "refresh-token";
|
|
|
|
export const ENDPOINTS = {
|
|
// User
|
|
LOGIN: "/login",
|
|
REFRESH_TOKEN: "/refresh-token",
|
|
|
|
// Exercice
|
|
CATALOG: "/exercices",
|
|
|
|
// Training
|
|
TRAINING: "/trainings",
|
|
};
|
|
|
|
export type EndpointType = keyof typeof ENDPOINTS;
|