SHARE
TWEET

Untitled

a guest Jun 17th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top