code: public function module($key)
      {
          if ( ! $this->core->modules()->has($key)) {
              abort(404, 'Module not loaded');
          }
  
          return $this->core->api()->response(
              $this->makeContainer(
                  $this->core->modules()->getModulePermissions($key)
              )
          );
      }
docs: Returns available permissions for a single module.
  
  @param $key
  @return mixed