<?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');
    }

}