- commit
- a895946
- parent
- 4b951be
- author
- Eric Bower
- date
- 2024-01-30 20:33:33 +0000 UTC
fix(imgs): redirect to prose.sh
1 files changed,
+3,
-0
+3,
-0
1@@ -235,6 +235,9 @@ func redirectHandler(w http.ResponseWriter, r *http.Request) {
2 func createMainRoutes(staticRoutes []shared.Route) []shared.Route {
3 routes := []shared.Route{
4 shared.NewRoute("GET", "/check", shared.CheckHandler),
5+ shared.NewRoute("GET", "/", func(w http.ResponseWriter, r *http.Request) {
6+ http.Redirect(w, r, "https://prose.sh", http.StatusMovedPermanently)
7+ }),
8 }
9
10 routes = append(