aboutsummaryrefslogtreecommitdiffhomepage
path: root/api/handler.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-11-11 10:22:47 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-11-11 10:22:47 -0800
commit0925899cee9362cf09e982487bd480e2b09041f4 (patch)
tree212ae69cba7c6543f8b2c176bdf124a7a41d6e66 /api/handler.go
parenta9f98adb0739f78495af745d30839a8aaf2f6979 (diff)
Move API middleware and routes to api package
Diffstat (limited to 'api/handler.go')
-rw-r--r--api/handler.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/api/handler.go b/api/handler.go
new file mode 100644
index 0000000..8585dcd
--- /dev/null
+++ b/api/handler.go
@@ -0,0 +1,15 @@
+// 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 api // import "miniflux.app/api"
+
+import (
+ "miniflux.app/reader/feed"
+ "miniflux.app/storage"
+)
+
+type handler struct {
+ store *storage.Storage
+ feedHandler *feed.Handler
+}