Fix WOPI: Use config for Nextcloud URL instead of hardcoded nc.b0esche.cloud
This commit is contained in:
@@ -111,7 +111,7 @@ func NewRouter(cfg *config.Config, db *database.DB, jwtManager *jwt.Manager, aut
|
||||
})
|
||||
// PutFile & Lock operations: POST /wopi/files/{fileId}/contents and POST /wopi/files/{fileId}
|
||||
r.Post("/contents", func(w http.ResponseWriter, req *http.Request) {
|
||||
wopiPutFileHandler(w, req, db, jwtManager)
|
||||
wopiPutFileHandler(w, req, db, jwtManager, cfg)
|
||||
})
|
||||
// Lock operations: POST /wopi/files/{fileId}
|
||||
r.Post("/", func(w http.ResponseWriter, req *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user