function entity_share_server_menu in Entity Share 7
Implements hook_menu().
File
- modules/
entity_share_server/ entity_share_server.module, line 11 - Entity Share Server .module file.
Code
function entity_share_server_menu() {
$items = array();
// Usage example: /entity_share/rest_api/node.
$items['entity_share/rest_api'] = array(
'title' => 'Entity Share Rest API',
'description' => 'Entity share REST API',
'page callback' => '_entity_share_server_proxy_router',
// We must be able to reach the server in anonymous for login.
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
return $items;
}