18 lines
500 B
TypeScript
18 lines
500 B
TypeScript
export class Endpoints {
|
|
/* Ticket Routes */
|
|
public static readonly TICKET: string = 'ticket';
|
|
|
|
/* Calculated Routes */
|
|
public static TICKET_SEARCH(ticketId: string): string {
|
|
return `${Endpoints.TICKET}?ticketId=${ticketId}`;
|
|
}
|
|
|
|
/* Event Routes */
|
|
public static readonly EVENT: string = 'events';
|
|
|
|
/* Calculated Routes */
|
|
public static EVENT_DATE_SEARCH(startDate: Date, endDate: Date): string {
|
|
return `${Endpoints.EVENT}?startDate=${startDate}&endDate=${endDate}`;
|
|
}
|
|
}
|