14 lines
251 B
PHP
14 lines
251 B
PHP
<?php
|
|
use Slim\Factory\AppFactory;
|
|
use App\Controllers\WeatherController;
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
$app = AppFactory::create();
|
|
|
|
// Routes
|
|
$app->get('/weather/{city}', [WeatherController::class, 'get']);
|
|
|
|
// Run app
|
|
$app->run();
|