Files
oc-server3/htdocs/okapi/urls.php
T
Wojciech Rygielski bdc794952e OKAPI Project update (r424).
The major difference in this version of OKAPI is that it properly hides caches with statuses > 3. However, this required a complex update process. I'm not 100% sure if this update process will succeed in all scenarios, but I think it should.

Note, that first cronjobs fired after this update MAY take even 20 minutes to run.
2012-08-23 10:51:12 +02:00

30 lines
866 B
PHP

<?
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',
'^devel/cronreport$' => 'devel/cronreport',
);
}