up add vote stack route

This commit is contained in:
Tykayn 2021-05-20 14:28:25 +02:00 committed by tykayn
parent 863e216fe7
commit 2a68825926
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html # see https://symfony.com/doc/current/reference/configuration/framework.html
framework: framework:
trusted_hosts: ['localhost:4200', 'localhost', 'tktest.lan', '127.0.0.1', 'framadate-api.cipherbliss.com'] trusted_hosts: ['localhost:4200', 'localhost', 'tktest.lan', '127.0.0.1', '127.0.0.1:8000', 'framadate-api.cipherbliss.com']
secret: '%env(APP_SECRET)%' secret: '%env(APP_SECRET)%'
#csrf_protection: true #csrf_protection: true
#http_method_override: true #http_method_override: true

View File

@ -197,7 +197,7 @@ class PollController extends EmailsController {
/** /**
* @Put( * @Put(
* path = "/{customUrl}/{token}", * path = "/{customUrl}/update/{token}",
* name = "update_poll", * name = "update_poll",
* requirements = {"content"="\w+", "poll_id"="\d+"} * requirements = {"content"="\w+", "poll_id"="\d+"}
* ) * )

View File

@ -66,8 +66,8 @@ class VoteController extends EmailsController {
$data = $request->getContent(); $data = $request->getContent();
$data = json_decode( $data, true ); $data = json_decode( $data, true );
var_dump($data); // var_dump($data);
die(); // die();
$owner = new Owner(); $owner = new Owner();
$owner $owner