Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppController;
- use SymfonyBundleFrameworkBundleControllerAbstractController;
- use SymfonyComponentRoutingAnnotationRoute;
- include_once 'src/utilities.php'; // Aquí no funciona
- class ApiController extends AbstractController
- {
- /**
- * @Route("/", name="home")
- */
- public function index()
- {
- return $this->json(
- [
- 'success' => true,
- 'version' => '1.0',
- 'message' => 'Mi API'
- ]
- );
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement