Removed useless server constants
MODIFY
src/server/rest/v1/router/api/OCPIEndpointRouter.ts
src/server/rest/v1/router/api/OCPIEndpointRouter.ts
@@ -35,7 +35,7 @@ export default class OCPIEndpointRouter {
}
protected buildRouteOcpiEndpointCreate(): void {
- this.router.post(`/${ServerRoute.REST_OCPI_ENDPOINT_CREATE}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.post(`/${ServerRoute.REST_OCPI_ENDPOINTS}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(OCPIEndpointService.handleCreateOcpiEndpoint.bind(this), ServerAction.OCPI_ENDPOINT_CREATE, req, res, next);
});
}

MODIFY
src/types/Server.ts
src/types/Server.ts
@@ -567,7 +567,6 @@ export enum ServerRoute {
REST_NOTIFICATIONS_END_USER_REPORT_ERROR = 'notifications/action/end-user/report-error',
- REST_OCPI_ENDPOINT_CREATE = 'ocpi/endpoints',
REST_OCPI_ENDPOINT_PING = 'ocpi/endpoints/:id/ping',
REST_OCPI_ENDPOINT_CHECK_CDRS = 'ocpi/endpoints/:id/cdrs/check',
REST_OCPI_ENDPOINT_CHECK_LOCATIONS = 'ocpi/endpoints/:id/locations/check',
@@ -581,10 +580,8 @@ export enum ServerRoute {
REST_OCPI_ENDPOINT_GENERATE_LOCAL_TOKEN = 'ocpi/endpoints/:id/tokens/generate',
REST_OCPI_ENDPOINTS = 'ocpi/endpoints',
REST_OCPI_ENDPOINT = 'ocpi/endpoints/:id',
- REST_OCPI_ENDPOINT_UPDATE = 'ocpi/endpoints/:id',
REST_OCPI_ENDPOINT_REGISTER = 'ocpi/endpoints/:id/register',
REST_OCPI_ENDPOINT_UNREGISTER = 'ocpi/endpoints/:id/unregister',
- REST_OCPI_ENDPOINT_DELETE = 'ocpi/endpoints/:id',
// BILLING URLs for CRUD operations on PAYMENT METHODS
REST_BILLING_PAYMENT_METHODS = 'users/:userID/payment-methods',

Removed useless server constants