Closed rodude123 closed 1 year ago
having done a little research I found out I had a spelling error, I close this issue in shame 😞
Great! Also I would probably do something like:
new RequestPathRule([
"path" => ["/api"],
"ignore" => ["/api/contact", "/api/user/login", "/api/user/changePassword"]
]),
The ignore
parameter creates exceptions to what path
would otherwise cover.
So up till recently, the JWT bit used to work fine now it doesn't work whatever version of my repo I run, it keeps allowing you to post even though it shouldn't. This is what I have as my JWT function inside of my middleware class.
Then this is what my constructor looks like
Then inside my index.php file, I have this
new middleware($app)
and an import statement at the toprequire "middleware.php"