Skip to content

Instantly share code, notes, and snippets.

@NandoKstroNet
Created January 7, 2018 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NandoKstroNet/b771a0ad3d88cbfc249f6e767a22110f to your computer and use it in GitHub Desktop.
Save NandoKstroNet/b771a0ad3d88cbfc249f6e767a22110f to your computer and use it in GitHub Desktop.
<?php
namespace APIBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\JsonResponse;
class DefaultController extends Controller
{
/**
* @Route("/")
*/
public function indexAction()
{
return new JsonResponse(['msg' => 'Serie Symfony 3.4 API']);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment