diff --git a/api/anime/handler.go b/api/anime/handler.go index 2e19e20..ac3db0b 100644 --- a/api/anime/handler.go +++ b/api/anime/handler.go @@ -446,34 +446,10 @@ func (h *Handler) HandleSearch(w http.ResponseWriter, r *http.Request) { renderNotFoundPage(r, w) } -func (h *Handler) HandleAPISearch(w http.ResponseWriter, r *http.Request) { - http.Error(w, "Not implemented yet", http.StatusNotImplemented) -} - -func (h *Handler) HandleAPICatalog(w http.ResponseWriter, r *http.Request) { - http.Error(w, "Not implemented yet", http.StatusNotImplemented) -} - -func (h *Handler) HandleAPIEpisodes(w http.ResponseWriter, r *http.Request) { - http.Error(w, "Not implemented yet", http.StatusNotImplemented) -} - -func (h *Handler) HandleAPIDiscoverAiring(w http.ResponseWriter, r *http.Request) { - http.Error(w, "Not implemented yet", http.StatusNotImplemented) -} - -func (h *Handler) HandleAPIDiscoverUpcoming(w http.ResponseWriter, r *http.Request) { - http.Error(w, "Not implemented yet", http.StatusNotImplemented) -} - func (h *Handler) HandleStudioDetails(w http.ResponseWriter, r *http.Request) { renderNotFoundPage(r, w) } -func (h *Handler) HandleAPIStudioAnime(w http.ResponseWriter, r *http.Request) { - http.Error(w, "Not implemented yet", http.StatusNotImplemented) -} - func renderNotFoundPage(r *http.Request, w http.ResponseWriter) { w.WriteHeader(http.StatusNotFound) if err := templates.GetRenderer().ExecuteTemplate(r.Context(), w, "not_found.gohtml", map[string]any{ diff --git a/api/watchlist/handler.go b/api/watchlist/handler.go index a000fe8..787ea0b 100644 --- a/api/watchlist/handler.go +++ b/api/watchlist/handler.go @@ -19,10 +19,6 @@ func NewHandler(service *Service) *Handler { return &Handler{service: service} } -func (h *Handler) HandleCardWatchlist(w http.ResponseWriter, r *http.Request) { - http.Error(w, "Not implemented", http.StatusNotImplemented) -} - func (h *Handler) HandleUpdateWatchlist(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodPost { http.Error(w, "method not allowed", http.StatusMethodNotAllowed) diff --git a/internal/server/routes.go b/internal/server/routes.go index 551c981..ba191ca 100644 --- a/internal/server/routes.go +++ b/internal/server/routes.go @@ -143,7 +143,6 @@ func NewRouter(cfg Config) http.Handler { mux.HandleFunc("/logout", authHandler.HandleLogout) // Watchlist Endpoints - mux.HandleFunc("/api/watchlist/card", watchlistHandler.HandleCardWatchlist) mux.HandleFunc("/api/watchlist", watchlistHandler.HandleUpdateWatchlist) mux.HandleFunc("/api/watchlist/", watchlistHandler.HandleDeleteWatchlist) mux.HandleFunc("/api/continue-watching/", watchlistHandler.HandleDeleteContinueWatching)