Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Last active April 23, 2017 03:37
Show Gist options
  • Save msfidelis/cda687f66c50ca1dbc2cb5b3512ee9ef to your computer and use it in GitHub Desktop.
Save msfidelis/cda687f66c50ca1dbc2cb5b3512ee9ef to your computer and use it in GitHub Desktop.
<?php
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
require './vendor/autoload.php';
$app = new \Slim\App;
/**
* Inicio do bang :)
* @var string
*/
$app->get('/', function (Request $request, Response $response) use ($app) {
$response->getBody()->write("Bebê de Microservice!");
return $response;
});
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment