Download Jamstash in make setup

This commit is contained in:
Deluan
2020-01-08 11:13:05 -05:00
committed by Deluan Quintão
parent 23e38ec82f
commit 907c310c01
3 changed files with 13 additions and 7 deletions
+3 -3
View File
@@ -48,11 +48,11 @@ func (a *App) initRoutes() {
r.Use(middleware.Heartbeat("/ping"))
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/static/Jamstash", 302)
http.Redirect(w, r, "/Jamstash", 302)
})
workDir, _ := os.Getwd()
filesDir := filepath.Join(workDir, "static")
FileServer(r, "/static", http.Dir(filesDir))
filesDir := filepath.Join(workDir, "Jamstash-master/dist")
FileServer(r, "/Jamstash", http.Dir(filesDir))
a.router = r
}