mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Remove user comments in root controllers
This commit is contained in:
@@ -32,35 +32,9 @@ class Notifications implements ControllerProviderInterface
|
||||
$app['firewall']->requireNotGuest();
|
||||
});
|
||||
|
||||
/**
|
||||
* Read all notifications
|
||||
*
|
||||
* name : read_notifications_full
|
||||
*
|
||||
* description : Read full notification
|
||||
*
|
||||
* method : GET
|
||||
*
|
||||
* parameters : none
|
||||
*
|
||||
* return : JSON Response
|
||||
*/
|
||||
$controllers->get('/', 'controller.user.notifications:listNotifications')
|
||||
->bind('get_notifications');
|
||||
|
||||
/**
|
||||
* Set notifications as readed
|
||||
*
|
||||
* name : set_notifications_readed
|
||||
*
|
||||
* description : Set notifications as readed
|
||||
*
|
||||
* method : POST
|
||||
*
|
||||
* parameters : none
|
||||
*
|
||||
* return : JSON Response
|
||||
*/
|
||||
$controllers->post('/read/', 'controller.user.notifications:readNotifications')
|
||||
->bind('set_notifications_readed');
|
||||
|
||||
|
@@ -32,35 +32,9 @@ class Preferences implements ControllerProviderInterface
|
||||
$app['firewall']->requireAuthentication();
|
||||
});
|
||||
|
||||
/**
|
||||
* Save preferences
|
||||
*
|
||||
* name : save_pref
|
||||
*
|
||||
* description : Save User preferences
|
||||
*
|
||||
* method : POST
|
||||
*
|
||||
* parameters : none
|
||||
*
|
||||
* return : JSON Response
|
||||
*/
|
||||
$controllers->post('/', 'controller.user.preferences:saveUserPref')
|
||||
->bind('save_pref');
|
||||
|
||||
/**
|
||||
* Save temporary preferences
|
||||
*
|
||||
* name : save_temp_pref
|
||||
*
|
||||
* description : Save temporary preferences
|
||||
*
|
||||
* method : POST
|
||||
*
|
||||
* parameters : none
|
||||
*
|
||||
* return : JSON Response
|
||||
*/
|
||||
$controllers->post('/temporary/', 'controller.user.preferences:saveTemporaryPref')
|
||||
->bind('save_temp_pref');
|
||||
|
||||
|
Reference in New Issue
Block a user