in src/api/mock-api-router.ts [151:164]
private trackRegistration(uri: string, method: HttpMethod, name = "") {
const pathRegistrations = this.registeredRoutes.get(uri);
if (!pathRegistrations) {
this.registeredRoutes.set(uri, { [method]: name });
return;
}
if (pathRegistrations[method]) {
throw new Error(`A handler for ${method} ${uri} has been registered already`);
}
pathRegistrations[method] = name;
return;
}