mirror of
https://github.com/wallabag/wallabag.git
synced 2024-10-31 22:28:54 +00:00
24 lines
488 B
PHP
24 lines
488 B
PHP
|
<?php
|
||
|
|
||
|
namespace Wallabag\ApiBundle\Controller;
|
||
|
|
||
|
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
|
||
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
||
|
|
||
|
class ConfigRestController extends WallabagRestController
|
||
|
{
|
||
|
/**
|
||
|
* Retrieve configuration for current user.
|
||
|
*
|
||
|
* @ApiDoc()
|
||
|
*
|
||
|
* @return JsonResponse
|
||
|
*/
|
||
|
public function getConfigAction()
|
||
|
{
|
||
|
$this->validateAuthentication();
|
||
|
|
||
|
return $this->sendResponse($this->getUser()->getConfig());
|
||
|
}
|
||
|
}
|