diff --git a/src/api/__init__.py b/src/api/__init__.py index 220216d..e812220 100644 --- a/src/api/__init__.py +++ b/src/api/__init__.py @@ -3,10 +3,10 @@ from src.api import account_search, contact, contributors, faq, home, monitoring, cookies router = APIRouter() -router.include_router(monitoring.router, prefix="/monitoring") -router.include_router(home.router, prefix="/home") -router.include_router(account_search.router, prefix="/account-search") -router.include_router(contributors.router, prefix="/contributors") -router.include_router(contact.router, prefix="/contact") -router.include_router(faq.router, prefix="/about") -router.include_router(cookies.router, prefix="/cookies") \ No newline at end of file +router.include_router(monitoring.router) +router.include_router(home.router) +router.include_router(account_search.router) +router.include_router(contributors.router) +router.include_router(contact.router) +router.include_router(faq.router) +router.include_router(cookies.router) \ No newline at end of file diff --git a/src/api/account_search.py b/src/api/account_search.py index 4286c11..f3b21bd 100644 --- a/src/api/account_search.py +++ b/src/api/account_search.py @@ -6,12 +6,12 @@ router = APIRouter() -@router.get("/") +@router.get("/account-search") async def account_search(request: Request) -> HTMLResponse: return templates.TemplateResponse("pages/account_search.html", {"request": request}) -@router.post("/") +@router.post("/account-search") async def account_search(request: Request, username: str = Form(...)) -> HTMLResponse: # You can access the submitted username using the "username" variable prediction = await BD_API.get_prediction(name=username) diff --git a/src/api/contact.py b/src/api/contact.py index cab5e24..28c74b6 100644 --- a/src/api/contact.py +++ b/src/api/contact.py @@ -6,6 +6,6 @@ router = APIRouter() -@router.get("/") +@router.get("/contact") async def contact(request: Request) -> HTMLResponse: return templates.TemplateResponse("pages/contact.html", {"request": request}) diff --git a/src/api/contributors.py b/src/api/contributors.py index 767a4ae..7ca6dac 100644 --- a/src/api/contributors.py +++ b/src/api/contributors.py @@ -5,6 +5,6 @@ router = APIRouter() -@router.get("/") +@router.get("/contributors") async def contributors(request: Request): return templates.TemplateResponse("pages/contributors.html", {"request": request}) diff --git a/src/api/cookies.py b/src/api/cookies.py index 4f12b48..ef1cc5d 100644 --- a/src/api/cookies.py +++ b/src/api/cookies.py @@ -6,6 +6,6 @@ router = APIRouter() -@router.get("/") +@router.get("/cookies") async def cookies(request: Request) -> HTMLResponse: return templates.TemplateResponse("pages/cookies.html", {"request": request}) diff --git a/src/api/faq.py b/src/api/faq.py index 5e9aa1c..07e9453 100644 --- a/src/api/faq.py +++ b/src/api/faq.py @@ -5,6 +5,6 @@ router = APIRouter() -@router.get("/") +@router.get("/about") async def faq(request: Request): return templates.TemplateResponse("pages/faq.html", {"request": request}) diff --git a/src/api/home.py b/src/api/home.py index 538ad01..265ca71 100644 --- a/src/api/home.py +++ b/src/api/home.py @@ -12,7 +12,7 @@ class Stats(BaseModel): total_accounts: int -@router.get("/") +@router.get("/home") async def home(request: Request): stats = await BD_API.get_project_stats() stats = Stats(**stats) diff --git a/src/api/monitoring.py b/src/api/monitoring.py index fb2506f..e7e0348 100644 --- a/src/api/monitoring.py +++ b/src/api/monitoring.py @@ -6,6 +6,6 @@ router = APIRouter() -@router.get("/", response_model=Health) +@router.get("/monitoring", response_model=Health) async def health() -> Health: return Health(version=CONFIG.RELEASE_VERSION, status="Healthy") diff --git a/src/static/core.botdetector.css b/src/static/core.botdetector.css index 420efa6..9023b3c 100644 --- a/src/static/core.botdetector.css +++ b/src/static/core.botdetector.css @@ -98,28 +98,21 @@ table{ } .runelite { - border-bottom: 2px solid #8fb55e; + border-left: 2px solid #8fb55e; text-align: center; - box-shadow: inset 0px -44px 55px 0px rgba(143,181,94,0.5); - border-radius:0; } .botstats { - border-bottom: 2px solid #008aff; + border-left: 2px solid #008aff; text-align: center; - box-shadow: inset 0px -44px 55px 0px rgba(0,138,255,0.5); - border-radius:0; } .notify { -border-bottom: 2px solid #8a9ef6; +border-left: 2px solid #8a9ef6; text-align: center; -box-shadow: inset 0px -44px 55px 0px rgba(138,158,246,0.5); border-radius:0; - - } .dcboost {