| from fastapi import APIRouter, Depends | |
| import datetime | |
| from main import verify_token | |
| router = APIRouter(tags=["system"]) | |
| async def root(): | |
| """Root endpoint for uptime monitoring""" | |
| return {"status": "online", "service": "hotel-image-api"} | |
| async def health_check(): | |
| """Health check endpoint for uptime monitoring""" | |
| return {"status": "healthy", "timestamp": datetime.datetime.utcnow().isoformat()} | |
| async def status(): | |
| """Status check without token verification""" | |
| return {"status": "running"} | |
| async def token_test(): | |
| """Actually tests if token authentication is working""" | |
| return {"status": "success", "message": "Token authentication successful"} |