Skip to content

Commit

Permalink
Refactoring Handler, resource id and deleting unnecessary file
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriana Baldacchino committed Aug 24, 2023
1 parent c300c65 commit 926d3fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1,305 deletions.
6 changes: 2 additions & 4 deletions internal/http/services/overleaf/overleaf.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ func (s *svc) Unprotected() []string {
}

func (s *svc) Handler() http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
s.router.ServeHTTP(w, r)
})
return s.router
}

func (s *svc) handleImport(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -186,7 +184,7 @@ func (s *svc) handleExport(w http.ResponseWriter, r *http.Request) {
}

archQuery := archHTTPReq.URL.Query()
archQuery.Add("id", resource.Id.StorageId+"!"+resource.Id.OpaqueId)
archQuery.Add("id", resourceid.OwnCloudResourceIDWrap(resource.Id))
archQuery.Add("access_token", restrictedToken)
archQuery.Add("arch_type", "zip")

Expand Down
Loading

0 comments on commit 926d3fa

Please sign in to comment.