This commit is contained in:
dartcafe 2020-07-07 17:22:50 +02:00
Родитель 1230e822b3
Коммит 7f3efd71e4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: CCE73CEF3035D3C8
3 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -30,8 +30,8 @@ return [
['name' => 'page#vote_public', 'url' => '/s/{token}', 'verb' => 'GET', 'postfix' => 'public'],
['name' => 'page#vote_public', 'url' => '/poll/{token}', 'verb' => 'GET', 'postfix' => 'oldpublic'],
['name' => 'subscription#get', 'url' => '/subscription/get/{pollId}', 'verb' => 'GET'],
['name' => 'subscription#set', 'url' => '/subscription/set', 'verb' => 'POST'],
['name' => 'subscription#get', 'url' => '/subscription/{pollId}', 'verb' => 'GET'],
['name' => 'subscription#set', 'url' => '/subscription', 'verb' => 'POST'],
['name' => 'comment#getByToken', 'url' => '/comments/s/{token}', 'verb' => 'GET'],
['name' => 'comment#get', 'url' => '/comments/{pollId}', 'verb' => 'GET'],

Просмотреть файл

@ -24,7 +24,7 @@ Example calls:
| POST | /api/v1.0/poll/clone/{pollId} | Clone poll {pollId} | 201, 403, 404 |
| PUT | /api/v1.0/poll/{pollId} | Update poll | 200, 403, 404, 409 |
| DELETE | /api/v1.0/poll/{pollId} | Delete poll logical | 200, 403, 404 |
| DELETE | /api/v1.0/poll/permanent{pollId} | Delete poll permanently | 200, 403, 404 |
| DELETE | /api/v1.0/poll/permanent/{pollId} | Delete poll permanently | 200, 403, 404 |
| GET | /api/v1.0/poll/enum | Get valid enums | 200, 403, 404 |
## Add poll

Просмотреть файл

@ -43,7 +43,7 @@ const mutations = {
const actions = {
getSubscription(context, payload) {
const endPoint = 'apps/polls/subscription/get'
const endPoint = 'apps/polls/subscription'
return axios.get(generateUrl(endPoint.concat('/', payload.pollId)))
.then(() => {
@ -55,7 +55,7 @@ const actions = {
},
writeSubscriptionPromise(context, payload) {
const endPoint = 'apps/polls/subscription/set'
const endPoint = 'apps/polls/subscription'
return axios.post(generateUrl(endPoint), { pollId: payload.pollId, subscribed: state.subscribed })
.then(() => {
})