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

Incorrect prefix on API #36

Open
SergiyKovalenko opened this issue Aug 6, 2020 · 1 comment
Open

Incorrect prefix on API #36

SergiyKovalenko opened this issue Aug 6, 2020 · 1 comment

Comments

@SergiyKovalenko
Copy link

SergiyKovalenko commented Aug 6, 2020

I use Laravel 7, Api routes added automatically. I don't need to add \Igaster\LaravelCities\Geo::ApiRoutes(); in api.php.
After add \Igaster\LaravelCities\Geo::ApiRoutes();. in group routes with prefix 'api'. This prefix don't appears.
But in routes.php use prefix 'geo'.
Please changed prefix to 'api/geo/' in routes.php to use correct path 'api/geo/item/{id}'.
Thank you.

@abbaseya
Copy link

I agree with @SergiyKovalenko this little change in the latest release wasted far too long just to figure out that the registered routes actually changed since Jan 13 – commit bc39916.
Either updating your readme to reflect the new routes prefix /geo or just restore those back to /api/geo please.

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

2 participants