Bugfixes (#11)

* Don't offer rollback for the first revision

* Fix the rollback bug

* Cosmetics

* Errors shown as alerts
This commit is contained in:
Andrey Pokhilko
2022-09-15 13:27:24 +01:00
committed by GitHub
parent 269895ae31
commit 6b8d959491
5 changed files with 81 additions and 46 deletions

View File

@@ -43,13 +43,12 @@ func NewRouter(abortWeb ControlChan, data *DataLayer) *gin.Engine {
}
api.Use(contextSetter(data))
api.Use(noCache)
api.Use(errorHandler)
configureStatic(api)
configureRoutes(abortWeb, data, api)
api.Use(noCache)
api.Use(errorHandler)
return api
}