All files / src/app/shared/services/network api.routes.ts

100% Statements 5/5
100% Branches 0/0
100% Functions 2/2
100% Lines 3/3

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        1x 2x 3x    
import { buildURL } from "@shared/logic/query.params";
import { environment } from "src/environments/environment.prod";
 
export default class ApiRoutes {
    private static apiEventRouter = '/api/eventos/';
    static apiEvents = (): string => buildURL(environment.baseUrl, this.apiEventRouter);
    static apiEventWith = (identifier: string): string => buildURL(environment.baseUrl, this.apiEventRouter, { id: identifier });
}