chore: remove not implemented stubs
This commit is contained in:
@@ -446,34 +446,10 @@ func (h *Handler) HandleSearch(w http.ResponseWriter, r *http.Request) {
|
|||||||
renderNotFoundPage(r, w)
|
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) {
|
func (h *Handler) HandleStudioDetails(w http.ResponseWriter, r *http.Request) {
|
||||||
renderNotFoundPage(r, w)
|
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) {
|
func renderNotFoundPage(r *http.Request, w http.ResponseWriter) {
|
||||||
w.WriteHeader(http.StatusNotFound)
|
w.WriteHeader(http.StatusNotFound)
|
||||||
if err := templates.GetRenderer().ExecuteTemplate(r.Context(), w, "not_found.gohtml", map[string]any{
|
if err := templates.GetRenderer().ExecuteTemplate(r.Context(), w, "not_found.gohtml", map[string]any{
|
||||||
|
|||||||
@@ -19,10 +19,6 @@ func NewHandler(service *Service) *Handler {
|
|||||||
return &Handler{service: service}
|
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) {
|
func (h *Handler) HandleUpdateWatchlist(w http.ResponseWriter, r *http.Request) {
|
||||||
if r.Method != http.MethodPost {
|
if r.Method != http.MethodPost {
|
||||||
http.Error(w, "method not allowed", http.StatusMethodNotAllowed)
|
http.Error(w, "method not allowed", http.StatusMethodNotAllowed)
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ func NewRouter(cfg Config) http.Handler {
|
|||||||
mux.HandleFunc("/logout", authHandler.HandleLogout)
|
mux.HandleFunc("/logout", authHandler.HandleLogout)
|
||||||
|
|
||||||
// Watchlist Endpoints
|
// Watchlist Endpoints
|
||||||
mux.HandleFunc("/api/watchlist/card", watchlistHandler.HandleCardWatchlist)
|
|
||||||
mux.HandleFunc("/api/watchlist", watchlistHandler.HandleUpdateWatchlist)
|
mux.HandleFunc("/api/watchlist", watchlistHandler.HandleUpdateWatchlist)
|
||||||
mux.HandleFunc("/api/watchlist/", watchlistHandler.HandleDeleteWatchlist)
|
mux.HandleFunc("/api/watchlist/", watchlistHandler.HandleDeleteWatchlist)
|
||||||
mux.HandleFunc("/api/continue-watching/", watchlistHandler.HandleDeleteContinueWatching)
|
mux.HandleFunc("/api/continue-watching/", watchlistHandler.HandleDeleteContinueWatching)
|
||||||
|
|||||||
Reference in New Issue
Block a user