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:
parent
863e216fe7
commit
2a68825926
@ -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
|
||||||
|
@ -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+"}
|
||||||
* )
|
* )
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user