diff options
| author | Christine Dodrill <me@christine.website> | 2019-01-26 11:47:16 -0800 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2019-01-26 11:47:16 -0800 |
| commit | 6ff2379dd09ec957ede8e309524568274efe8665 (patch) | |
| tree | 0dbd1a6a6d4ae4e9de5430393ee9a14b7fcdbee6 /cmd | |
| parent | 38a461727b0b85e1809ec85b6bb812e63fc82400 (diff) | |
| download | xesite-6ff2379dd09ec957ede8e309524568274efe8665.tar.xz xesite-6ff2379dd09ec957ede8e309524568274efe8665.zip | |
removed taht need
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/site/main.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/site/main.go b/cmd/site/main.go index 3791585..14aec02 100644 --- a/cmd/site/main.go +++ b/cmd/site/main.go @@ -13,10 +13,10 @@ import ( "time" "github.com/Xe/jsonfeed" - "within.website/ln" "github.com/gorilla/feeds" blackfriday "github.com/russross/blackfriday" "github.com/tj/front" + "within.website/ln" ) var port = os.Getenv("PORT") @@ -164,12 +164,15 @@ func Build() (*Site, error) { s.mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/" { w.WriteHeader(http.StatusNotFound) - s.renderTemplatePage("error.html", "can't find " + r.URL.Path).ServeHTTP(w,r) + s.renderTemplatePage("error.html", "can't find "+r.URL.Path).ServeHTTP(w, r) return } s.renderTemplatePage("index.html", nil).ServeHTTP(w, r) }) + s.mux.HandleFunc("/.within/health", func(w http.ResponseWriter, r *http.Request) { + http.Error(w, "OK", http.StatusOK) + }) s.mux.Handle("/resume", s.renderTemplatePage("resume.html", s.Resume)) s.mux.Handle("/blog", s.renderTemplatePage("blogindex.html", s.Posts)) s.mux.Handle("/contact", s.renderTemplatePage("contact.html", nil)) |
