27 lines
733 B
Python
27 lines
733 B
Python
import os
|
|
from typing import Optional
|
|
|
|
class Config:
|
|
def __init__(self):
|
|
self.BACKEND_URL = os.getenv("BACKEND_URL", "http://localhost:8000")
|
|
self.DEBUG = os.getenv("DEBUG", "false").lower() == "true"
|
|
|
|
@property
|
|
def api_base_url(self) -> str:
|
|
return f"{self.BACKEND_URL}/api"
|
|
|
|
@property
|
|
def auth_url(self) -> str:
|
|
return f"{self.api_base_url}/auth"
|
|
|
|
@property
|
|
def applications_url(self) -> str:
|
|
return f"{self.api_base_url}/applications"
|
|
|
|
@property
|
|
def jobs_url(self) -> str:
|
|
return f"{self.api_base_url}/jobs"
|
|
|
|
@property
|
|
def documents_url(self) -> str:
|
|
return f"{self.api_base_url}/documents" |