summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-02 12:41:51 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-02 12:41:51 -0800
commitae201cf1af12132ed5aed3c180bcb785dee85621 (patch)
tree18436f40c59e1c6567507eb99b8cd7ad3e043858
parentaff85d798e7d03ea9f29b219d3ce3ab85d03ec8c (diff)
minor cleanup, removal of old code
-rw-r--r--system/admin/handlers.go4
-rw-r--r--system/admin/server.go3
2 files changed, 1 insertions, 6 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index 1ff7156..efcb449 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -734,10 +734,6 @@ func recoveryKeyHandler(res http.ResponseWriter, req *http.Request) {
}
}
-func recoveryEditHandler(res http.ResponseWriter, req *http.Request) {
-
-}
-
func contentsHandler(res http.ResponseWriter, req *http.Request) {
q := req.URL.Query()
t := q.Get("type")
diff --git a/system/admin/server.go b/system/admin/server.go
index b99ec37..155892a 100644
--- a/system/admin/server.go
+++ b/system/admin/server.go
@@ -22,7 +22,6 @@ func Run() {
http.HandleFunc("/admin/recover", forgotPasswordHandler)
http.HandleFunc("/admin/recover/key", recoveryKeyHandler)
- http.HandleFunc("/admin/recover/edit", recoveryEditHandler)
http.HandleFunc("/admin/configure", user.Auth(configHandler))
http.HandleFunc("/admin/configure/users", user.Auth(configUsersHandler))
@@ -39,7 +38,7 @@ func Run() {
pwd, err := os.Getwd()
if err != nil {
- log.Fatal("Couldn't find current directory for file server.")
+ log.Fatalln("Couldn't find current directory for file server.")
}
staticDir := filepath.Join(pwd, "cmd", "ponzu", "vendor", "github.com", "ponzu-cms", "ponzu", "system")