Sync gists from database or filesystem (admin panel)

This commit is contained in:
Thomas Miceli
2023-03-19 01:51:25 +01:00
parent be7e9ab385
commit 11b3eed250
4 changed files with 105 additions and 1 deletions

View File

@@ -140,6 +140,8 @@ func Start() {
g2.POST("/users/:user/delete", adminUserDelete)
g2.GET("/gists", adminGists)
g2.POST("/gists/:gist/delete", adminGistDelete)
g2.POST("/sync-fs", adminSyncReposFromFS)
g2.POST("/sync-db", adminSyncReposFromDB)
}
g1.GET("/all", allGists)