Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppController;
  4.  
  5. use SymfonyBundleFrameworkBundleControllerAbstractController;
  6. use SymfonyComponentRoutingAnnotationRoute;
  7.  
  8. include_once 'src/utilities.php'; // Aquí no funciona
  9.  
  10. class ApiController extends AbstractController
  11. {
  12. /**
  13. * @Route("/", name="home")
  14. */
  15. public function index()
  16. {
  17. return $this->json(
  18. [
  19. 'success' => true,
  20. 'version' => '1.0',
  21. 'message' => 'Mi API'
  22. ]
  23. );
  24. }
  25. }
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement