Hi all,
I just follow the cursus on how to implement Slim, and it’s working nicely !
But I get in trouble with a Middleware.
In fact, I’ve 3 kinds of routes :
• Frontend
• Backend
• Api
For the backend I need a credential to access the data.
Actually, I’m looking if the $_SESSION user is not null and if the route is not in an array (some pages from the front…).
But I don’t like this kind of process… If I add a new page, I’ve to exclude it… it’s not nice.
I would like to know if it’s possible to attach a Middleware to a “group” ?
Without the container, I can achieve this… but with the container… it’s broken.
Thanks for your advice !