|
|
@@ -24,4 +24,15 @@ export class ItemService { |
|
|
|
}; |
|
|
|
return this.http.put(URL + '/api/maioraservice/menuitems/v1/update/', menuItem, httpOptions).toPromise(); |
|
|
|
} |
|
|
|
|
|
|
|
addMenuItem(menuItem: any) { |
|
|
|
const httpOptions = { |
|
|
|
headers: new HttpHeaders({ |
|
|
|
'Access-Control-Allow-Origin': '*', |
|
|
|
'Content-Type': 'application/json', |
|
|
|
'Authorization': 'Bearer ' + localStorage.token |
|
|
|
}) |
|
|
|
}; |
|
|
|
return this.http.post(URL + '/api/maioraservice/menuitems/v1/create/', menuItem, httpOptions).toPromise(); |
|
|
|
} |
|
|
|
} |