1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00

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
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)%'
#csrf_protection: true
#http_method_override: true

View File

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

View File

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