Initial git sorage backend implementation

This commit is contained in:
2024-09-28 14:52:02 +02:00
parent 122860d230
commit 0558ea292b
8 changed files with 427 additions and 26 deletions

View File

@@ -19,5 +19,9 @@ func SetupRoutes(r chi.Router, db *db.DB, fs *filesystem.FileSystem) {
r.Post("/*", SaveFile(fs))
r.Delete("/*", DeleteFile(fs))
})
r.Route("/git", func(r chi.Router) {
r.Post("commit", StageCommitAndPush(fs))
r.Post("/pull", PullChanges(fs))
})
})
}