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

feature : add API enable/disable configuration for Algerian Cities package #21

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

n4ss1m
Copy link
Contributor

@n4ss1m n4ss1m commented Oct 30, 2024

This PR introduces an api_enabled configuration for the Algerian Cities package, allowing users to enable or disable API endpoints via the .env file.

Changes

  • Added config variable ALGERIAN_CITIES_API_ENABLED to toggle API access for the Algerian Cities package.

Usage

To enable or disable the API, add the following to your .env file:

ALGERIAN_CITIES_API_ENABLED=true  # or false

Related Issues

#16

@n4ss1m
Copy link
Contributor Author

n4ss1m commented Oct 30, 2024

GitHub Actions is experiencing issues. Status: https://www.githubstatus.com/
I'll check back later to see if tests pass.

@kossa
Copy link
Owner

kossa commented Oct 30, 2024

Sure no problem

@n4ss1m
Copy link
Contributor Author

n4ss1m commented Oct 31, 2024

@kossa All checks have passed , you can accept the PR and close #16

@kossa kossa merged commit d9c7d66 into kossa:master Oct 31, 2024
7 checks passed
@kossa
Copy link
Owner

kossa commented Oct 31, 2024

Good job 👍

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