Class UiController
- java.lang.Object
-
- org.craftercms.studio.controller.rest.v2.UiController
-
@RestController @RequestMapping("/api/2/ui") public class UiController extends Object
Controller that provides the UI elements the current user has access to.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description UiController(UiService uiService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultOne<String>
getActiveEnvironment()
ResultList<MenuItem>
getGlobalMenu()
-
-
-
Constructor Detail
-
UiController
@ConstructorProperties("uiService") public UiController(UiService uiService)
-
-
Method Detail
-
getGlobalMenu
@GetMapping("/views/global_menu") public ResultList<MenuItem> getGlobalMenu() throws AuthenticationException, ServiceLayerException
-
getActiveEnvironment
@GetMapping("/system/active_environment") public ResultOne<String> getActiveEnvironment() throws AuthenticationException
- Throws:
AuthenticationException
-
-