Skip to content

Commit

Permalink
nit: move frontend registration to InitFrontend
Browse files Browse the repository at this point in the history
  • Loading branch information
tyzbit committed May 7, 2022
1 parent 06fa8b0 commit adef86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func InitFrontend(r *gin.Engine) {
log.Panic(err)
}
r.StaticFS("/static", http.FS(staticSubPath))
r.GET("/", watcher.Home)
}

func InitBackend(r *gin.Engine) {
Expand All @@ -32,5 +33,4 @@ func InitBackend(r *gin.Engine) {
r.GET("/balances", watcher.GetBalances)
r.GET("/watches", watcher.GetWatches)
r.DELETE("/identifier", watcher.DeleteIdentifier)
r.GET("/", watcher.Home)
}

0 comments on commit adef86c

Please sign in to comment.