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
|
||||
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
|
||||
|
@ -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+"}
|
||||
* )
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user