mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-15 02:01:30 +03:00
Updated posts service to allow for category deletion and subscription retrieval based on name
This commit is contained in:
@@ -304,10 +304,13 @@ export class PostsService implements CanActivate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
createCategory(name) {
|
createCategory(name) {
|
||||||
console.log(name);
|
|
||||||
return this.http.post(this.path + 'createCategory', {name: name}, this.httpOptions);
|
return this.http.post(this.path + 'createCategory', {name: name}, this.httpOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deleteCategory(category_uid) {
|
||||||
|
return this.http.post(this.path + 'deleteCategory', {category_uid: category_uid}, this.httpOptions);
|
||||||
|
}
|
||||||
|
|
||||||
updateCategory(category) {
|
updateCategory(category) {
|
||||||
return this.http.post(this.path + 'updateCategory', {category: category}, this.httpOptions);
|
return this.http.post(this.path + 'updateCategory', {category: category}, this.httpOptions);
|
||||||
}
|
}
|
||||||
@@ -340,8 +343,8 @@ export class PostsService implements CanActivate {
|
|||||||
file_uid: file_uid}, this.httpOptions)
|
file_uid: file_uid}, this.httpOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
getSubscription(id) {
|
getSubscription(id, name = null) {
|
||||||
return this.http.post(this.path + 'getSubscription', {id: id}, this.httpOptions);
|
return this.http.post(this.path + 'getSubscription', {id: id, name: name}, this.httpOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
getAllSubscriptions() {
|
getAllSubscriptions() {
|
||||||
|
|||||||
Reference in New Issue
Block a user