Last active
April 23, 2017 03:37
-
-
Save msfidelis/cda687f66c50ca1dbc2cb5b3512ee9ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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