Created
July 16, 2016 14:15
-
-
Save pboethig/eec9672dfc1c4c2455297ec355e83fd8 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 | |
/** | |
* Created by PhpStorm. | |
* User: root | |
* Date: 16.07.16 | |
* Time: 15:34 | |
*/ | |
namespace AppBundle\Controller\Api; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Response; | |
class UserController extends Controller { | |
/** | |
* @Route("/api/user") | |
* @Method("POST") | |
*/ | |
public function newAction() | |
{ | |
return new Response('this is it'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment