6 changed files with 63 additions and 30 deletions
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
package controllers |
||||
|
||||
import ( |
||||
"encoding/json" |
||||
"net/http" |
||||
|
||||
"github.com/gabek/owncast/config" |
||||
"github.com/gabek/owncast/router/middleware" |
||||
) |
||||
|
||||
//GetWebConfig gets the status of the server
|
||||
func GetWebConfig(w http.ResponseWriter, r *http.Request) { |
||||
middleware.EnableCors(&w) |
||||
|
||||
config := config.Config.InstanceDetails |
||||
|
||||
json.NewEncoder(w).Encode(config) |
||||
} |
@ -1,21 +0,0 @@
@@ -1,21 +0,0 @@
|
||||
{ |
||||
"name": "gabek", |
||||
"title": "Owncast Demo Server", |
||||
"logo": "/img/logo128.png", |
||||
|
||||
"summary": "This is brief summary of whom you are or what your stream is. demo server for Owncast. You can read more about it at owncast.online. You can edit this description in your web config file.\n\nBlathers is an owl with brown feathers. His face is white and he has a yellow beak. His arms are wing shaped and he has yellow talons. His eyes are very big with small black irises. He also has big pink cheek circles on his cheeks. His belly appears to be checkered in diamonds with light brown and white squares, similar to an argyle vest, which is traditionally associated with academia. His green bowtie further alludes to his academic nature.", |
||||
|
||||
"tags": [ |
||||
"music", |
||||
"software", |
||||
"animal crossing" |
||||
], |
||||
"socialHandles": [ |
||||
{ "platform": "twitter", "handle": "abc" }, |
||||
{ "platform": "instagram", "handle": "abc" }, |
||||
{ "platform": "facebook", "handle": "" }, |
||||
{ "platform": "tiktok", "handle": "abc" }, |
||||
{ "platform": "soundcloud", "handle": "abc" }, |
||||
{ "platform": "newone", "handle": "abc" } |
||||
] |
||||
} |
Loading…
Reference in new issue