aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2020-02-20 03:04:02 +0000
committerFelix Hanley <felix@userspace.com.au>2020-02-20 03:04:02 +0000
commit7d18480b3e1df4233e0b540909931a99d4fe3b71 (patch)
tree1ca1dd91cc38211b2378f2641494c390d5a4871a
parentdcc9d4bf599eeeffee615cf198b2b74734bcaa48 (diff)
downloadsws-7d18480b3e1df4233e0b540909931a99d4fe3b71.tar.gz
sws-7d18480b3e1df4233e0b540909931a99d4fe3b71.tar.bz2
Disable debug
-rw-r--r--cmd/server/main.go2
-rw-r--r--go.mod2
-rw-r--r--go.sum2
3 files changed, 3 insertions, 3 deletions
diff --git a/cmd/server/main.go b/cmd/server/main.go
index 7f9041e..0d65bb7 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -137,11 +137,9 @@ func main() {
})
})
})
- http.Handle("/", http.FileServer(http.Dir("/tmp")))
// Example
r.Get("/test.html", handleExample(renderer))
- r.Get("/test-again.html", handleExample(renderer))
r.Route("/", func(r chi.Router) {
r.Get("/", handleIndex(renderer))
diff --git a/go.mod b/go.mod
index 7ec91a9..a458165 100644
--- a/go.mod
+++ b/go.mod
@@ -19,7 +19,7 @@ require (
golang.org/x/image v0.0.0-20200119044424-58c23975cae1 // indirect
google.golang.org/appengine v1.6.5 // indirect
src.userspace.com.au/go-migrate v0.0.0-20200208102934-cf11cf76db3f
- src.userspace.com.au/templates v0.0.0-20200220013354-f1c51c0fe1a2
+ src.userspace.com.au/templates v0.0.0-20200220030259-5089e411d858
)
go 1.13
diff --git a/go.sum b/go.sum
index f86706e..28822c3 100644
--- a/go.sum
+++ b/go.sum
@@ -56,3 +56,5 @@ src.userspace.com.au/go-migrate v0.0.0-20200208102934-cf11cf76db3f h1:Vdn/5kMeLX
src.userspace.com.au/go-migrate v0.0.0-20200208102934-cf11cf76db3f/go.mod h1:QaSWOcvGubR8TBPs8XgLN67muYgAKnmIgHAaQk5ZR1c=
src.userspace.com.au/templates v0.0.0-20200220013354-f1c51c0fe1a2 h1:0nPxJSdpZh+ikLLtDWX7GldlwcbCX8p9jWYSgRiUcz4=
src.userspace.com.au/templates v0.0.0-20200220013354-f1c51c0fe1a2/go.mod h1:lB6Vdw9R/8jR8CzvPxfQ8ryBwpNDni1fCdeRjj90gxA=
+src.userspace.com.au/templates v0.0.0-20200220030259-5089e411d858 h1:fDaFR7z+dgvUspJ8Xk2HLnKA6MKEFXWd7xAsoy1gPfA=
+src.userspace.com.au/templates v0.0.0-20200220030259-5089e411d858/go.mod h1:lB6Vdw9R/8jR8CzvPxfQ8ryBwpNDni1fCdeRjj90gxA=