mirror of
https://github.com/notrab/dumbo.git
synced 2025-01-17 06:08:31 +01:00
6687353c15
* feat(dumbo): add static files * always serve index.html * update readme * simplify
15 lines
252 B
PHP
15 lines
252 B
PHP
<?php
|
|
|
|
require __DIR__ . "/vendor/autoload.php";
|
|
|
|
use Dumbo\Dumbo;
|
|
use Dumbo\Helpers\StaticFiles;
|
|
|
|
$app = new Dumbo();
|
|
|
|
$app->use("/", StaticFiles::serve(__DIR__ . "/assets"));
|
|
|
|
// $app->get("/", StaticFiles::serve(__DIR__ . "/assets"));
|
|
|
|
$app->run();
|