Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Vanilla API don't respect application
cassiofagundes
New
Hi!
I am having a problem when i try to use some endpoints of vanilla api.
I am using vanilla 2.2.12, api 0.1.3 and the conf file provided by @Kasper https://github.com/kasperisager/vagrant-lnpp/blob/master/modules/lnpp/templates/nginx/vanilla.conf.erb
When i try to acces the delete endpoint for categories
// DELETE endpoints
static::delete('/:id', array( 'application' => 'Vanilla', 'controller' => 'Settings', 'method' => 'deleteCategory', 'arguments' => array(':id') ));
does not appear that he respect the 'application' => 'Vanilla', because i get a memory limit excedeed, and debugging i see this path in dispatcher applications\dashboard\controllers\
that should be vanilla instead of dashboard in the path i supose.
Soemone have any idea?
Thanks in advance
1
Comments
This has been broken for the past 4 releases it would appear. Let me know if this fixes the issue: https://github.com/kasperisager/vanilla-api/commit/3db3f450b5580389271138a3d60d985ff193b1ee
Also, for future reference (from the README):
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
@Kasper Works perfect, my mistake in the wrong place to put this, sorry.