|
|
|
@ -33,7 +33,7 @@ import java.util.List; |
|
|
|
@RequestMapping("/api") |
|
|
|
public class WidgetsBundleController extends BaseController { |
|
|
|
|
|
|
|
@PreAuthorize("hasAnyAuthority('SYS_ADMIN', 'TENANT_ADMIN')") |
|
|
|
@PreAuthorize("hasAnyAuthority('SYS_ADMIN', 'TENANT_ADMIN', 'CUSTOMER_USER')") |
|
|
|
@RequestMapping(value = "/widgetsBundle/{widgetsBundleId}", method = RequestMethod.GET) |
|
|
|
@ResponseBody |
|
|
|
public WidgetsBundle getWidgetsBundleById(@PathVariable("widgetsBundleId") String strWidgetsBundleId) throws ThingsboardException { |
|
|
|
@ -76,7 +76,7 @@ public class WidgetsBundleController extends BaseController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@PreAuthorize("hasAnyAuthority('SYS_ADMIN', 'TENANT_ADMIN')") |
|
|
|
@PreAuthorize("hasAnyAuthority('SYS_ADMIN', 'TENANT_ADMIN', 'CUSTOMER_USER')") |
|
|
|
@RequestMapping(value = "/widgetsBundles", params = { "limit" }, method = RequestMethod.GET) |
|
|
|
@ResponseBody |
|
|
|
public TextPageData<WidgetsBundle> getWidgetsBundles( |
|
|
|
@ -97,7 +97,7 @@ public class WidgetsBundleController extends BaseController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@PreAuthorize("hasAnyAuthority('SYS_ADMIN', 'TENANT_ADMIN')") |
|
|
|
@PreAuthorize("hasAnyAuthority('SYS_ADMIN', 'TENANT_ADMIN', 'CUSTOMER_USER')") |
|
|
|
@RequestMapping(value = "/widgetsBundles", method = RequestMethod.GET) |
|
|
|
@ResponseBody |
|
|
|
public List<WidgetsBundle> getWidgetsBundles() throws ThingsboardException { |
|
|
|
|