Initial OKAPI import (r412).
This commit is contained in:
28
htdocs/okapi/urls.php
Normal file
28
htdocs/okapi/urls.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?
|
||||
|
||||
namespace okapi;
|
||||
|
||||
# This is the list of OKAPI views. Regexps are mapped to namespaces.
|
||||
# Each namespace should expose the Webservice class with a method "call".
|
||||
# The "call" method should return OkapiResponse, or throw a BadRequest
|
||||
# exception.
|
||||
|
||||
class OkapiUrls
|
||||
{
|
||||
public static $mapping = array(
|
||||
'^(services/.*)\.html$' => 'method_doc',
|
||||
'^(services/.*)$' => 'method_call',
|
||||
'^introduction\.html$' => 'introduction',
|
||||
'^signup\.html$' => 'signup',
|
||||
'^examples\.html$' => 'examples',
|
||||
'^$' => 'index',
|
||||
'^apps/$' => 'apps/index',
|
||||
'^apps/authorize$' => 'apps/authorize',
|
||||
'^apps/authorized$' => 'apps/authorized',
|
||||
'^apps/revoke_access$' => 'apps/revoke_access',
|
||||
'^update/?$' => 'update',
|
||||
'^cron5$' => 'cron5',
|
||||
'^devel/attrlist$' => 'devel/attrlist',
|
||||
'^devel/dbstruct$' => 'devel/dbstruct',
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user