removed trailing slash from 'create' urls
This commit is contained in:
parent
d5ce06d4d7
commit
4ade9787db
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user