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

Configurable API domain #50

Closed
romalytvynenko opened this issue Oct 5, 2022 · 0 comments · Fixed by #76
Closed

Configurable API domain #50

romalytvynenko opened this issue Oct 5, 2022 · 0 comments · Fixed by #76
Labels
enhancement New feature or request

Comments

@romalytvynenko
Copy link
Member

romalytvynenko commented Oct 5, 2022

We have one application where we use a subdomain for the api. It would be good to have an option to configure the domain for the api and maybe an option for the docs path.


'api_domain' => env('API_DOMAIN'),
'api_path' => '',
'docs_path => 'docs'

If the domain is set, the routes could be filtered by default:


Scramble::routes(fn (Route $route) => $route->getDomain() === config('scramble.api_domain'));

Originally posted by @m-lotze in #45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant