summaryrefslogtreecommitdiff
path: root/system/admin/server.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-13 15:48:38 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-13 15:48:38 -0800
commit317dcbdda41cafbd5a330602b38b9a52fab5ec6f (patch)
tree23be361cc3d69a33d2aa88bf49c6586ff44b7afa /system/admin/server.go
parentaf31558e3d90b887758d9266c5ba80f0d9eaf3dc (diff)
adding test in CORS middleware in fix for start
Diffstat (limited to 'system/admin/server.go')
-rw-r--r--system/admin/server.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/admin/server.go b/system/admin/server.go
index 991f2d2..8b759e4 100644
--- a/system/admin/server.go
+++ b/system/admin/server.go
@@ -1,6 +1,7 @@
package admin
import (
+ "fmt"
"log"
"net/http"
"os"
@@ -54,4 +55,6 @@ func Run() {
http.Handle("/api/uploads/", api.Record(api.CORS(db.CacheControl(
http.StripPrefix("/api/uploads/", http.FileServer(
restrict(http.Dir(uploadsDir))))))))
+
+ fmt.Println("Admin routes registered.")
}