Started work on improved channel guide rendering
This commit is contained in:
parent
0291904534
commit
c3483627d8
6 changed files with 125 additions and 54 deletions
|
|
@ -1012,6 +1012,18 @@ class canopyAjaxUtils{
|
|||
}
|
||||
|
||||
//Channel
|
||||
async getChannels(){
|
||||
var response = await fetch(`/api/channel/list`,{
|
||||
method: "GET"
|
||||
});
|
||||
|
||||
if(response.ok){
|
||||
return await response.json();
|
||||
}else{
|
||||
utils.ux.displayResponseError(await response.json());
|
||||
}
|
||||
}
|
||||
|
||||
async newChannel(name, description, thumbnail, verification){
|
||||
var response = await fetch(`/api/channel/register`,{
|
||||
method: "POST",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue