The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Best way of managing a lot routes

Luca's Avatar

Luca

04 Sep, 2015 03:36 PM

Hello Community!
Whats the best way of managing a lot routes? In my current major project I reached a number of around 50 routes, right now they are stored in one file but with adding more and more middleware and new routes its getting a bit to large.

Is there any common practise for solving this issue?

I already splitted up my application into different parts using the htacces by redirecting certain requests (e.g. /api or /admin) to different frontcontrollers that uses different Slim application objects.

Regards & thanks for your help :)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac