Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Made route matching more restritive
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Dec 3, 2013
1 parent 9e45991 commit c619a9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Lyrixx/Bundle/FortuneBundle/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
namespace Lyrixx\Bundle\FortuneBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;

/**
* @Template()
* @Route("/api")
* @Method("GET")
*/
class ApiController extends Controller
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
use Pagerfanta\Pagerfanta;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;

/**
* @Template()
* @Method("GET")
*/
class FrontController extends Controller
{
Expand Down Expand Up @@ -47,6 +49,7 @@ public function indexAction(Request $request)

/**
* @Route("/new", name="fortune_new")
* @Method("GET|POST")
*/
public function newAction(Request $request)
{
Expand Down

0 comments on commit c619a9f

Please sign in to comment.