17 lines
409 B
PHP
Executable File
17 lines
409 B
PHP
Executable File
<?php
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
use App\Controllers\SiteController;
|
|
use Core\Application;
|
|
|
|
$app = new Application(dirname(__DIR__));
|
|
|
|
$app->router->get('/', [SiteController::class, 'home']);
|
|
$app->router->get('/contact', [SiteController::class, 'contact']);
|
|
|
|
// API routes
|
|
$app->router->get('/api/ping', [App\Controllers\ApiController::class, 'ping']);
|
|
|
|
$app->run();
|