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

Move API route from /api to any base route (e. g. /api/v1) #295

Closed
wants to merge 4 commits into from
Closed

Conversation

aitym
Copy link

@aitym aitym commented Nov 11, 2020

Many programmers prefer to use route 'api/v1' instead of route '/api' or any custom base route for API. I made some changes that helps you to set base URL. You can set the base URL in the file 'resources/js/store/modules/core.js' at the Line 3

@aitym
Copy link
Author

aitym commented Nov 11, 2020

Many programmers prefer to use route 'api/v1' instead of route '/api' or any custom base route for API. I made some changes that helps you to set base URL. You can set the base URL in the file 'resources/js/store/modules/core.js' at the Line 3

From the backend side you can configure the base URL in file ''App/Providers/RouteServiceProvider.php' at line #29

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.

None yet

2 participants