16 lines
317 B
PHP
16 lines
317 B
PHP
|
<?php
|
||
|
|
||
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
||
|
use App\Application;
|
||
|
|
||
|
require_once __DIR__.'/../vendor/autoload.php';
|
||
|
|
||
|
$app = new Application();
|
||
|
$app->setRootDir(__DIR__.'/../')->configure();
|
||
|
|
||
|
$app->get('/api/sms', function () use ($app) {
|
||
|
return new JsonResponse(['status' => 'ok']);
|
||
|
});
|
||
|
|
||
|
$app->run();
|