diff --git a/api.go b/api.go index 0f6982c..3885c44 100644 --- a/api.go +++ b/api.go @@ -1330,6 +1330,14 @@ func (app *appContext) GetLanguages(gc *gin.Context) { gc.JSON(200, resp) } +func (app *appContext) restart(gc *gin.Context) { + app.info.Println("Restarting...") + err := app.Restart() + if err != nil { + app.err.Printf("Couldn't restart, try restarting manually. (%s)", err) + } +} + func (app *appContext) ServeLang(gc *gin.Context) { page := gc.Param("page") lang := strings.Replace(gc.Param("file"), ".json", "", 1) diff --git a/html/admin.html b/html/admin.html index 7e40774..7cdce79 100644 --- a/html/admin.html +++ b/html/admin.html @@ -278,7 +278,8 @@