- Backend: Add Content-Type: application/json to all JSON API endpoints - Android TV: Reduce HomeViewModel memory usage (load 4 categories only, limit 15 items each) - Android TV: Prevent OOM kill on TV devices with limited RAM - Updated APK, docker-compose, health endpoint to v3.9.2
16 lines
440 B
Go
16 lines
440 B
Go
package api
|
|
|
|
import (
|
|
"github.com/go-chi/chi/v5"
|
|
)
|
|
|
|
func RegisterRoutes(r chi.Router, h *Handler) {
|
|
r.Get("/videos/home", h.GetHomeVideos)
|
|
r.Get("/videos/search", h.SearchVideos)
|
|
r.Get("/videos/{slug}", h.GetMovieDetail)
|
|
r.Post("/extract", h.ExtractVideo)
|
|
r.Get("/images/proxy", h.ProxyImage)
|
|
r.Get("/categories/genres", h.GetGenres)
|
|
r.Get("/categories/countries", h.GetCountries)
|
|
r.Get("/stream", h.StreamVideo)
|
|
}
|