android-automate-api/web/index.php

16 lines
317 B
PHP
Raw Normal View History

2018-01-11 14:16:19 +01:00
<?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();