fix : site
This commit is contained in:
@@ -83,6 +83,28 @@ class UserController extends AbstractController
|
||||
return (new SiteService)->del();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: 'site/set_default',methods: 'post')]
|
||||
#[Scene(scene: 'set_default_site')]
|
||||
public function setDefaultSite()
|
||||
{
|
||||
return (new SiteService)->setDefault();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
#[RequestMapping(path: 'site/get_default',methods: 'GET')]
|
||||
#[Scene(scene: 'get_default_site')]
|
||||
public function getDefaultSite()
|
||||
{
|
||||
return (new SiteService)->getDefault();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
@@ -117,6 +139,6 @@ class UserController extends AbstractController
|
||||
|
||||
public function updateProfile()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user