aboutsummaryrefslogtreecommitdiff
path: root/ui/handler.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net> 2018-11-11 11:28:29 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net> 2018-11-11 11:29:12 -0800
commit5a69a61d4841a35d7ddcb761a688db8c688314d6 (patch)
treeb807ee1da5b0705e7649f70742d8198f351c1224 /ui/handler.go
parent0925899cee9362cf09e982487bd480e2b09041f4 (diff)
downloadv2-5a69a61d4841a35d7ddcb761a688db8c688314d6.tar.gz
v2-5a69a61d4841a35d7ddcb761a688db8c688314d6.tar.zst
v2-5a69a61d4841a35d7ddcb761a688db8c688314d6.zip
Move UI middlewares and routes to ui package
Diffstat (limited to 'ui/handler.go')
-rw-r--r--ui/handler.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/ui/handler.go b/ui/handler.go
new file mode 100644
index 00000000..39fe560a
--- /dev/null
+++ b/ui/handler.go
@@ -0,0 +1,24 @@
+// Copyright 2017 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the Apache 2.0
+// license that can be found in the LICENSE file.
+
+package ui // import "miniflux.app/ui"
+
+import (
+ "miniflux.app/config"
+ "miniflux.app/reader/feed"
+ "miniflux.app/scheduler"
+ "miniflux.app/storage"
+ "miniflux.app/template"
+
+ "github.com/gorilla/mux"
+)
+
+type handler struct {
+ router *mux.Router
+ cfg *config.Config
+ store *storage.Storage
+ tpl *template.Engine
+ pool *scheduler.WorkerPool
+ feedHandler *feed.Handler
+}