Skip to content

Commit

Permalink
Fixing static files
Browse files Browse the repository at this point in the history
  • Loading branch information
relferreira committed Jan 10, 2019
1 parent f719d19 commit 4d3892b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"flag"
"io"
"log"
"net/http"
"os"
"path/filepath"
"time"
Expand All @@ -31,7 +32,7 @@ func main() {
clientset, err := kubernetes.NewForConfig(config)

r.Use(cors.Default())
r.Static("/ui", "./dist")
r.StaticFS("/ui", http.Dir("./dist"))
r.GET("/api/:namespace/deploy", func(c *gin.Context) {
namespace := c.Param("namespace")

Expand Down

0 comments on commit 4d3892b

Please sign in to comment.