All files / public/js Endpoints.mjs

100% Statements 14/14
100% Branches 0/0
100% Functions 0/0
100% Lines 13/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1812x   12x 12x   12x 12x 12x 12x   12x 12x 12x 12x   12x 12x  
export class Endpoints
{
    static BASE_URL = "";
    static API_ENDPOINT = `${Endpoints.BASE_URL}/api`;
 
    static MEMBER_ENDPOINT = `${Endpoints.API_ENDPOINT}/members`;
    static MEMBER_GET_ENDPOINT = Endpoints.MEMBER_ENDPOINT;
    static MEMBER_CREATE_ENDPOINT = `${Endpoints.MEMBER_ENDPOINT}/create`;
    static MEMBER_UPDATE_ENDPOINT = `${Endpoints.MEMBER_ENDPOINT}/update`;
 
    static GYM_PROGRAM_ENDPOINT = `${Endpoints.API_ENDPOINT}/gym-programs`;
    static GYM_PROGRAM_GET_ENDPOINT = Endpoints.GYM_PROGRAM_ENDPOINT;
    static GYM_PROGRAM_CREATE_ENDPOINT = `${Endpoints.GYM_PROGRAM_ENDPOINT}/create`;
    static GYM_PROGRAM_UPDATE_ENDPOINT = `${Endpoints.GYM_PROGRAM_ENDPOINT}/update`;
 
    static DATABASE_ENDPOINT = `${Endpoints.API_ENDPOINT}/database`;
    static DATABASE_RESET_ENDPOINT = `${Endpoints.DATABASE_ENDPOINT}/reset`;
}