1
0
Fork 0
miniflux/ui/history_flush.go

22 lines
453 B
Go
Raw Normal View History

// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
2018-09-03 17:26:40 -04:00
package ui // import "miniflux.app/ui"
import (
"net/http"
2018-09-03 17:26:40 -04:00
"miniflux.app/http/request"
"miniflux.app/http/response/json"
)
func (h *handler) flushHistory(w http.ResponseWriter, r *http.Request) {
err := h.store.FlushHistory(request.UserID(r))
if err != nil {
json.ServerError(w, r, err)
return
}
json.OK(w, r, "OK")
}