mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
Move UI middlewares and routes to ui package
This commit is contained in:
parent
0925899cee
commit
5a69a61d48
70 changed files with 739 additions and 769 deletions
|
@ -12,13 +12,12 @@ import (
|
|||
"miniflux.app/http/route"
|
||||
)
|
||||
|
||||
// FlushHistory changes all "read" items to "removed".
|
||||
func (c *Controller) FlushHistory(w http.ResponseWriter, r *http.Request) {
|
||||
err := c.store.FlushHistory(request.UserID(r))
|
||||
func (h *handler) flushHistory(w http.ResponseWriter, r *http.Request) {
|
||||
err := h.store.FlushHistory(request.UserID(r))
|
||||
if err != nil {
|
||||
html.ServerError(w, r, err)
|
||||
return
|
||||
}
|
||||
|
||||
html.Redirect(w, r, route.Path(c.router, "history"))
|
||||
html.Redirect(w, r, route.Path(h.router, "history"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue