feat: template feature
Signed-off-by: Michael Barz <mbarz@owncloud.com>
This commit is contained in:
@@ -182,5 +182,17 @@ func prepareRoutes(r *chi.Mux, options Options) {
|
||||
})
|
||||
})
|
||||
})
|
||||
r.Route("/templates/{templateID}", func(r chi.Router) {
|
||||
r.Use(
|
||||
func(h stdhttp.Handler) stdhttp.Handler {
|
||||
// authentication and wopi context
|
||||
return colabmiddleware.WopiContextAuthMiddleware(options.Config, h)
|
||||
},
|
||||
colabmiddleware.CollaborationTracingMiddleware,
|
||||
)
|
||||
r.Get("/", func(w stdhttp.ResponseWriter, r *stdhttp.Request) {
|
||||
adapter.GetFile(w, r)
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user