|
|
|
|
@ -91,7 +91,7 @@ func (hs *HTTPServer) registerRoutes() { |
|
|
|
|
r.Get("/plugins/:id/edit", reqSignedIn, hs.Index) // deprecated
|
|
|
|
|
r.Get("/plugins/:id/page/:page", reqSignedIn, hs.Index) |
|
|
|
|
// App Root Page
|
|
|
|
|
appPluginIDScope := plugins.ScopeProvider.GetResourceScope(":id") |
|
|
|
|
appPluginIDScope := plugins.ScopeProvider.GetResourceScope(ac.Parameter(":id")) |
|
|
|
|
r.Get("/a/:id/*", authorize(reqSignedIn, ac.EvalPermission(plugins.ActionAppAccess, appPluginIDScope)), hs.Index) |
|
|
|
|
r.Get("/a/:id", authorize(reqSignedIn, ac.EvalPermission(plugins.ActionAppAccess, appPluginIDScope)), hs.Index) |
|
|
|
|
|
|
|
|
|
@ -334,7 +334,7 @@ func (hs *HTTPServer) registerRoutes() { |
|
|
|
|
datasourceRoute.Get("/id/:name", authorize(reqSignedIn, ac.EvalPermission(datasources.ActionIDRead, nameScope)), routing.Wrap(hs.GetDataSourceIdByName)) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
pluginIDScope := plugins.ScopeProvider.GetResourceScope(":pluginId") |
|
|
|
|
pluginIDScope := plugins.ScopeProvider.GetResourceScope(ac.Parameter(":pluginId")) |
|
|
|
|
apiRoute.Get("/plugins", routing.Wrap(hs.GetPluginList)) |
|
|
|
|
apiRoute.Get("/plugins/:pluginId/settings", routing.Wrap(hs.GetPluginSettingByID)) // RBAC check performed in handler for App Plugins
|
|
|
|
|
apiRoute.Get("/plugins/:pluginId/markdown/:name", routing.Wrap(hs.GetPluginMarkdown)) |
|
|
|
|
|