Skip to content

Commit

Permalink
fix refresh page]
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Mar 28, 2021
1 parent 2ccc352 commit d195ca9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,7 @@ func main() {
)

// frontend routes handler
router.HandleFunc(
"/",
router.PathPrefix("/").HandlerFunc(
func(w http.ResponseWriter, r *http.Request) {
var indexBody, _ = ui.Asset("index.html")
w.Write(indexBody)
Expand Down

0 comments on commit d195ca9

Please sign in to comment.