removed trailing slash from 'create' urls

This commit is contained in:
Patrick Haßel 2024-09-11 15:45:38 +02:00
parent d5ce06d4d7
commit 4ade9787db
4 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ export class BulkService implements ISearchService {
}
create(next: (item: Bulk) => void): void {
this.api.postReturnItem("bulk/create/", new BulkCreate("Neu", true), Bulk.fromJson, next);
this.api.postReturnItem("bulk/create", new BulkCreate("Neu", true), Bulk.fromJson, next);
}
delete(bulk: Bulk, next: () => void): void {

View File

@ -69,7 +69,7 @@ export class DeviceService {
}
create(type: string, next: (item: Device) => void): void {
this.api.postReturnItem("device/create/", type, Device.fromJson, next);
this.api.postReturnItem("device/create", type, Device.fromJson, next);
}
delete(device: Device, next: () => void): void {

View File

@ -38,7 +38,7 @@ export class PropertyService implements ISearchService {
}
create(next: (item: Property) => void): void {
this.api.getReturnItem("property/create/", Property.fromJson, next);
this.api.getReturnItem("property/create", Property.fromJson, next);
}
delete(property: Property, next: Next<void>): void {

View File

@ -28,7 +28,7 @@ export class ScheduleService {
}
create(next: Next<Schedule> = NO_OP): void {
this.api.getReturnItem("schedule/create/", Schedule.fromJson, next);
this.api.getReturnItem("schedule/create", Schedule.fromJson, next);
}
set(schedule: Schedule, key: string, value: any, next: Next<Schedule> = NO_OP): void {