* Commit updated API documentation * Fix content path used for meta tags. TT:#3075 * Fix lint for go code. TT:#3075 * Revert docs/api/index.html TT:#3075 --------- Co-authored-by: Owncast <owncast@owncast.online>
This commit is contained in:
@@ -51,6 +51,7 @@ func renderIndexHtml(w http.ResponseWriter, nonce string) {
|
||||
Image string
|
||||
StatusJSON string
|
||||
ServerConfigJSON string
|
||||
EmbedVideo string
|
||||
Nonce string
|
||||
}
|
||||
|
||||
@@ -71,13 +72,14 @@ func renderIndexHtml(w http.ResponseWriter, nonce string) {
|
||||
content := serverSideContent{
|
||||
Name: data.GetServerName(),
|
||||
Summary: data.GetServerSummary(),
|
||||
RequestedURL: data.GetServerURL(),
|
||||
RequestedURL: fmt.Sprintf("%s%s", data.GetServerURL(), "/"),
|
||||
TagsString: strings.Join(data.GetServerMetadataTags(), ","),
|
||||
ThumbnailURL: "/thumbnail.jpg",
|
||||
Thumbnail: "/thumbnail.jpg",
|
||||
Image: "/logo/external",
|
||||
ThumbnailURL: "thumbnail.jpg",
|
||||
Thumbnail: "thumbnail.jpg",
|
||||
Image: "logo/external",
|
||||
StatusJSON: string(sb),
|
||||
ServerConfigJSON: string(cb),
|
||||
EmbedVideo: "embed/video",
|
||||
Nonce: nonce,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user