You are here

function shurly_service_menu in ShURLy 6

Same name and namespace in other branches
  1. 8 shurly_service/shurly_service.module \shurly_service_menu()
  2. 7 shurly_service/shurly_service.module \shurly_service_menu()

Implements hook_menu().

File

shurly_service/shurly_service.module, line 23
Link ShURLy functionalities to services module. @todo

Code

function shurly_service_menu() {
  $items = array();
  $items['shurly/api/shorten'] = array(
    'file' => 'shurly_service.inc',
    'page callback' => 'shurly_service_shorten',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['shurly/api/expand'] = array(
    'file' => 'shurly_service.inc',
    'page callback' => 'shurly_service_expand',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['shurly/api/key'] = array(
    'file' => 'shurly_service.inc',
    'page callback' => 'shurly_service_get_key',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}