diff --git a/apps/back-office/pages/api/login.ts b/apps/back-office/pages/api/login.ts index 64bc05144..0ed7356b2 100644 --- a/apps/back-office/pages/api/login.ts +++ b/apps/back-office/pages/api/login.ts @@ -10,7 +10,7 @@ interface DecodedJwtPayload { export default async function login(req, res) { const { username, password } = req.body; await api - .post('/v1/admin/signin', { username: username, password: password }) + .post('/v1/admin/auth/login', { username: username, password: password }) .then((response) => { if (response?.data?.accessToken) { // Set the authentication cookie diff --git a/apps/back-office/pages/team-view.tsx b/apps/back-office/pages/team-view.tsx index 5d85fe8ad..e51bf9101 100644 --- a/apps/back-office/pages/team-view.tsx +++ b/apps/back-office/pages/team-view.tsx @@ -169,7 +169,7 @@ export default function TeamView(props) { requestId: props.id, }; api - .post(`/v1/participants-request/unique-identifier`, data) + .get(`/v1/participants-request/unique-identifier?type=${data?.participantType}&identifier=${data.uniqueIdentifier}`) .then((response) => { setDisableSave(false); response?.data && diff --git a/apps/back-office/utils/constants.ts b/apps/back-office/utils/constants.ts index 37deda6ee..e010c32c2 100644 --- a/apps/back-office/utils/constants.ts +++ b/apps/back-office/utils/constants.ts @@ -31,7 +31,7 @@ export const ROUTE_CONSTANTS = { }; export const API_ROUTE = { - PARTICIPANTS_REQUEST: APP_CONSTANTS.V1 + 'admin/participants', + PARTICIPANTS_REQUEST: APP_CONSTANTS.V1 + 'admin/participants-request', TEAMS: APP_CONSTANTS.V1 + 'teams', SKILLS: APP_CONSTANTS.V1 + 'skills', IMAGES: APP_CONSTANTS.V1 + 'images',