Created
January 7, 2018 01:02
-
-
Save NandoKstroNet/b771a0ad3d88cbfc249f6e767a22110f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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