Skip to content

Instantly share code, notes, and snippets.

@jasonmccallister
Created July 31, 2015 01:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonmccallister/dfd96ad758e9cbcfe8d4 to your computer and use it in GitHub Desktop.
Save jasonmccallister/dfd96ad758e9cbcfe8d4 to your computer and use it in GitHub Desktop.
<?php
/**
* Register site routes.
*
* @return array
*/
public function registerSiteRoutes()
{
return array(
'api' => array(
'action' => 'api/index'
),
'api/entries' => array(
'action' => 'api/entries/all'
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment