fix: remove unused learning handler
This commit is contained in:
@@ -200,12 +200,3 @@ func main() {
|
||||
}
|
||||
slog.Info("server stopped")
|
||||
}
|
||||
|
||||
// notImplemented — заглушка для эндпоинтов, которые есть в схеме, но
|
||||
// ещё не имплементированы. Возвращает 501 + понятное сообщение, чтобы
|
||||
// фронт мог отрендерить «в разработке» вместо generic 500.
|
||||
func notImplemented(w http.ResponseWriter, _ *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(http.StatusNotImplemented)
|
||||
_, _ = w.Write([]byte(`{"error":"not implemented yet — следующая итерация"}`))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user