74b4b61198
Frontend: - index.html: probe device, navigate to standard/homekit by type - standard.html: camera config, model search with multi-select - create.html: stream URL list, custom URL input, create test session - homekit.html: HomeKit device info, contact links, fallback to standard Backend: - Move static files to www/ package with embed (go2rtc pattern) - Add initStatic() in api with FileServer - Add width/height to test results from H264 SPS parsing - Contribute links to gostrix.github.io with auto-filled params
17 lines
257 B
Go
17 lines
257 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/eduard256/strix/www"
|
|
)
|
|
|
|
func initStatic() {
|
|
root := http.FS(www.Static)
|
|
fileServer := http.FileServer(root)
|
|
|
|
HandleFunc("", func(w http.ResponseWriter, r *http.Request) {
|
|
fileServer.ServeHTTP(w, r)
|
|
})
|
|
}
|