kv-netflix/backend/internal/api/routes.go
vndangkhoa 69308bf696 v3.9.2: Fix Android TV OOM crash + backend Content-Type headers
- 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
2026-03-01 11:34:51 +07:00

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)
}