refactor: simplify openInApp code and remove hostViewUrl (and edit)

This commit is contained in:
Juan Pablo Villafáñez
2024-08-21 13:43:04 +02:00
parent a4c2aff641
commit 5ddd51ea84
3 changed files with 107 additions and 122 deletions
@@ -31,8 +31,6 @@ type WopiContext struct {
FileReference *providerv1beta1.Reference
User *userv1beta1.User
ViewMode appproviderv1beta1.ViewMode
EditAppUrl string
ViewAppUrl string
}
// WopiContextAuthMiddleware will prepare an HTTP handler to be used as