mirror of
https://git.sr.ht/~sircmpwn/tokidoki
synced 2025-12-12 14:17:21 +01:00
Start simple filesystem storage backend
This commit is contained in:
parent
3281b1d32b
commit
d917938a29
2 changed files with 111 additions and 15 deletions
|
|
@ -41,7 +41,11 @@ func main() {
|
|||
}
|
||||
mux.Use(authProvider.Middleware())
|
||||
|
||||
backend := storage.NewPostgreSQL()
|
||||
//backend := storage.NewPostgreSQL()
|
||||
backend, err := storage.NewFilesystem("./teststorage")
|
||||
if err != nil {
|
||||
log.Fatalf("failed to load storage backend: %s", err.Error())
|
||||
}
|
||||
mux.Mount("/", &carddav.Handler{Backend: backend})
|
||||
|
||||
server := http.Server{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue