GIF89a;
Direktori : /home/serb/www/api/ |
Current File : /home/serb/www/api/index.php |
<?php require 'vendor/autoload.php'; error_reporting(E_ALL); ini_set('display_errors', true); $config = array_merge( include 'config/api.php', include 'config/ad.php' ); // $config['slim.errors'] = fopen( 'logs/application.log', 'a' ); $app = new \Slim\Slim($config); // Index Route $app->get( '/', [ 'Mar\Middleware\Authentication', 'handle' ], [ 'Mar\Controllers\IndexController', 'dispatch' ] ); // Ad Get Route $app->get( '/ad', [ 'Mar\Middleware\Authentication', 'handle' ], [ 'Mar\Controllers\AdController', 'index' ] ); $app->run();