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()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseBody
getActiveEnvironment()
ResponseBody
getGlobalMenu()
void
setUiService(UiService uiService)
-
-
-
Method Detail
-
getGlobalMenu
@GetMapping("/views/global_menu") public ResponseBody getGlobalMenu() throws AuthenticationException, ServiceLayerException
-
getActiveEnvironment
@GetMapping("/system/active_environment") public ResponseBody getActiveEnvironment() throws AuthenticationException
- Throws:
AuthenticationException
-
setUiService
public void setUiService(UiService uiService)
-
-