Commits

Endy Muhardin committed 352b50a

pindahkan handler unselected menu

Comments (0)

Files changed (2)

belajar-restful-web/src/main/java/com/artivisi/belajar/restful/ui/controller/MenuController.java

         }
         return x;
     }
-    
-    @RequestMapping("/role/{id}/unselected-menu")
-    @ResponseBody
-    public List<Menu> findMenuNotInRole(@PathVariable String id) {
-        return belajarRestfulService.findMenuNotInRole(belajarRestfulService.findRoleById(id));
-    }
 
     @RequestMapping(value = "/menu", method = RequestMethod.POST)
     @ResponseStatus(HttpStatus.CREATED)

belajar-restful-web/src/main/java/com/artivisi/belajar/restful/ui/controller/RoleController.java

  */
 package com.artivisi.belajar.restful.ui.controller;
 
+import com.artivisi.belajar.restful.domain.Menu;
 import com.artivisi.belajar.restful.domain.Permission;
 import com.artivisi.belajar.restful.domain.Role;
 import com.artivisi.belajar.restful.service.BelajarRestfulService;
     public List<Permission> findPermissionNotInRole(@PathVariable String id) {
         return belajarRestfulService.findPermissionsNotInRole(belajarRestfulService.findRoleById(id));
     }
+    
+    @RequestMapping("/role/{id}/unselected-menu")
+    @ResponseBody
+    public List<Menu> findMenuNotInRole(@PathVariable String id) {
+        return belajarRestfulService.findMenuNotInRole(belajarRestfulService.findRoleById(id));
+    }
 
     @RequestMapping(value = "/role", method = RequestMethod.POST)
     @ResponseStatus(HttpStatus.CREATED)