Changeset 7865 for sandbox


Ignore:
Timestamp:
02/06/13 14:16:08 (9 years ago)
Author:
alexandrecorreia
Message:

Ticket #2507 - Padronização dos resources REST do Expresso

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/rest/dispatch.php

    r7860 r7865  
    11<?php 
    22 
    3 define('API_DIRECTORY','/var/www/expresso/api/rest', True); 
     3define('API_DIRECTORY', dirname( __FILE__ ) , True); 
    44 
    55// load libraries 
     
    1717require_once(API_DIRECTORY."/admin/CreateUserResource.php"); 
    1818require_once(API_DIRECTORY."/admin/DeleteUserResource.php"); 
    19 require_once(API_DIRECTORY."/admin/EditUserResource.php"); 
     19require_once(API_DIRECTORY."/admin/GetUsersResource.php"); 
    2020require_once(API_DIRECTORY."/admin/RenameUserResource.php"); 
    21 require_once(API_DIRECTORY."/admin/SearchUserResource.php"); 
    2221require_once(API_DIRECTORY."/admin/UpdateUserResource.php"); 
    2322 
     
    4342require_once(API_DIRECTORY."/calendar/EventsResource.php"); 
    4443 
     44 
    4545//Retrieveing the mapping of the URIs and his respectives classNames and classPath 
    46 $config = parse_ini_file( API_DIRECTORY . '/../config/Tonic.srv', true ); 
    47 $autoload = array(); 
    48 $classpath = array(); 
     46$config         = parse_ini_file( API_DIRECTORY . '/../config/Tonic.srv', true ); 
     47$autoload       = array(); 
     48$classpath      = array(); 
    4949 
    5050foreach( $config as $uri => $classFile ) 
Note: See TracChangeset for help on using the changeset viewer.