Add 2 new admin actions (#191)

* Synchronize all gists previews
* Reset Git server hooks for all repositories
This commit is contained in:
Thomas Miceli
2024-01-02 04:01:45 +01:00
parent 97707f7cca
commit f52310a841
10 changed files with 213 additions and 86 deletions

View File

@ -235,6 +235,8 @@ func NewServer(isDev bool) *Server {
g2.POST("/sync-fs", adminSyncReposFromFS)
g2.POST("/sync-db", adminSyncReposFromDB)
g2.POST("/gc-repos", adminGcRepos)
g2.POST("/sync-previews", adminSyncGistPreviews)
g2.POST("/reset-hooks", adminResetHooks)
g2.GET("/configuration", adminConfig)
g2.PUT("/set-config", adminSetConfig)
}