Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method Not Allowed #124

Open
WifiDubt opened this issue May 12, 2016 · 1 comment
Open

Method Not Allowed #124

WifiDubt opened this issue May 12, 2016 · 1 comment

Comments

@WifiDubt
Copy link

WifiDubt commented May 12, 2016

First of all, I want to say that I'm new to APIGuard, so maybe I'm doing something obviously wrong that I can't see.

I've installed the latest version of APIGuard, had to manually add some facades and lines to the middleware though. After getting it to not throw an error w/ Laravel, I finally found myself faced with this erro. It appears to be related to the middleware, since, no matter where I go on the website, this error appears, instead of the actual page.

{"error":{"code":"GEN-METHOD-NOT-ALLOWED","http_code":405,"message":"Method Not Allowed"}}

Does anybody have a clue on how to solve this?

@WifiDubt
Copy link
Author

Nevermind, just had to switch
'apiguard' => Chrisbjr\ApiGuard\Http\Middleware\ApiGuard::class,
to
'apiguard' => \Chrisbjr\ApiGuard\Http\Middleware\ApiGuard::class,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant