mirror of
https://github.com/Alvin-Zilverstand/narrow_casting_system.git
synced 2026-03-06 11:07:14 +01:00
yes
This commit is contained in:
@@ -50,6 +50,13 @@ class APIService {
|
||||
});
|
||||
}
|
||||
|
||||
async createTextContent(textData) {
|
||||
return this.request('/content/text', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(textData)
|
||||
});
|
||||
}
|
||||
|
||||
async deleteContent(contentId) {
|
||||
return this.request(`/content/${contentId}`, {
|
||||
method: 'DELETE'
|
||||
@@ -73,6 +80,13 @@ class APIService {
|
||||
return this.request('/zones');
|
||||
}
|
||||
|
||||
async createZone(zoneData) {
|
||||
return this.request('/zones', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(zoneData)
|
||||
});
|
||||
}
|
||||
|
||||
// Weather Data
|
||||
async getWeatherData() {
|
||||
return this.request('/weather');
|
||||
|
||||
Reference in New Issue
Block a user