summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorHorus32015-02-19 02:38:34 +0100
committerHorus32015-02-19 02:38:34 +0100
commitf53fa2f2f9eb445527e0a1b29b9e37c224499233 (patch)
tree229cc07cb4713a01393d4775f98ec733baa2afe7 /main.go
parent58e63343703e0c3f3c12934e62fc0f4575761869 (diff)
downloadstatuspage-f53fa2f2f9eb445527e0a1b29b9e37c224499233.tar.gz
Reorder files and parses templates.
Diffstat (limited to 'main.go')
-rw-r--r--main.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/main.go b/main.go
deleted file mode 100644
index fcbeaf5..0000000
--- a/main.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package main
-
-import (
- "github.com/gorilla/mux"
- "github.com/gorilla/schema"
- //"html/template"
- "net/http"
-)
-
-var decoder = schema.NewDecoder()
-
-//var templ = template.Must(template.ParseFiles("templates/header.html", "templates/navbar.html", "templates/footer.html"))
-
-func main() {
- InitDB()
-
- r := mux.NewRouter()
- r.HandleFunc("/", IndexHandler)
- r.HandleFunc("/register", RegisterHandler).Methods("POST")
- r.HandleFunc("/register", PrintRegisterHandler).Methods("GET")
- r.HandleFunc("/new", AddNewJobHandler).Methods("POST")
- r.HandleFunc("/new", PrintNewJobHandler).Methods("GET")
- http.Handle("/", r)
- http.ListenAndServe(":8080", nil)
-}