Skip to content

Commit

Permalink
feat: add restart endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
feuerrot committed Aug 21, 2020
1 parent ada5d6e commit f4f20e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gomumblesoundboard.go
Expand Up @@ -163,6 +163,9 @@ func main() {
scanDirs(flag.Args())
c.Redirect(http.StatusTemporaryRedirect, "/")
})
r.GET("/restart", func(c *gin.Context) {
os.Exit(255)
})
r.Run(":3000")
},
Disconnect: func(e *gumble.DisconnectEvent) {
Expand Down

0 comments on commit f4f20e4

Please sign in to comment.