17 lines
245 B
Go
17 lines
245 B
Go
package webui
|
|
|
|
import (
|
|
_ "embed"
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
//go:embed assets/logo-md-code-black.svg
|
|
var logoSvg string
|
|
|
|
// Serves the logo.
|
|
func serveLogo(w http.ResponseWriter, r *http.Request) {
|
|
setHeadersForSvg(w)
|
|
fmt.Fprint(w, logoSvg)
|
|
}
|