Configuration¶
Customize REROUTE's behavior with configuration options.
Basic Configuration¶
Available Options¶
Server Settings¶
PORT- Server port (default: 8000)HOST- Server host (default: "127.0.0.1")DEBUG- Debug mode (default: False)AUTO_RELOAD- Auto-reload on changes (default: True)
Routing¶
API_BASE_PATH- Base path for routes (default: "/")ROUTES_DIR- Routes directory (default: "app/routes")
CORS¶
ENABLE_CORS- Enable CORS (default: False)CORS_ALLOW_ORIGINS- Allowed originsCORS_ALLOW_METHODS- Allowed methodsCORS_ALLOW_HEADERS- Allowed headers
Logging¶
VERBOSE_LOGGING- Verbose logs (default: False)LOG_LEVEL- Log level (default: "INFO")