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

Completely refactor all routes #2174

Merged
merged 1 commit into from
Oct 13, 2016
Merged

Completely refactor all routes #2174

merged 1 commit into from
Oct 13, 2016

Conversation

jbrooksuk
Copy link
Member

I've put a new routing structure in place!

We're now prefixing all Cachet core routes with core::, followed by the request type, get: and then a name. An example of linking to the dashboard incidents update form core::get:dashboard.incidents.updates.

This introduces a new cachet_route helper which is similar to route, but prefixes the core domain.

Aside from just organising them, I've actually changed some of the URLs too. So now /add = /create and there is no /edit route for entities now. Clean! 🚀

@jbrooksuk jbrooksuk merged commit 4205353 into 2.4 Oct 13, 2016
@jbrooksuk jbrooksuk modified the milestone: V2.4.0 Oct 13, 2016
@ConnorVG
Copy link
Contributor

💎

@jbrooksuk jbrooksuk deleted the improve-routing branch October 14, 2016 08:50
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

Successfully merging this pull request may close these issues.

2 participants