Initial composer pkg release - attempt 1
This commit is contained in:
13
public/index.php
Normal file
13
public/index.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?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();
|
Reference in New Issue
Block a user