Spaces:
Sleeping
Sleeping
Update app/routers/base.py
Browse files6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545510111213141516171819202122236 unmodified lines@router.get("/", response_class=HTMLResponse)def home(): updated = get_latest_timestamp() html = f""" <html> <head> <title>Pegos Data API</title> <style> body {{ background: #0b1221; color: #f1f1f1; font-family: 'Inter', sans-serif; text-align: center; padding: 40px; }} h1 {{ color: #4cc9f0; }} .grid {{ display: flex; flex-wrap: wrap; justify-content: center; margin-top: 30px; }} .card {{ background: #1a2238; border-radius: 12px; padding: 20px; margin: 10px; width: 250px; box-shadow: 0 0 15px rgba(0,0,0,0.4); }} a {{ color: #72efdd; text-decoration: none; }} </style> </head> <body> <h1>🚀 Pegos Data API</h1> <p>Yapay zekâ destekli blockchain piyasa tahmin servisine hoş geldiniz.</p> <p><b>Son Güncelleme:</b> {updated}</p> <div class='grid'> <div class='card'><a href='/health'>/health</a></div> <div class='card'><a href='/latest'>/latest</a></div> <div class='card'><a href='/history'>/history</a></div> <div class='card'><a href='/signal'>/signal</a></div> <div class='card'><a href='/predictions'>/predictions</a></div> <div class='card'><a href='/predict'>/predict</a></div> </div> </body> </html> """ return HTMLResponse(html) return HTMLResponse(f""" <html><head><title>Pegos Data API</title></head> <body style='background:#0b1221;color:#f1f1f1;text-align:center;font-family:Inter;padding:40px'> <h1>🚀 Pegos Data API</h1> <p>HF flat dataset ile çalışan tahmin servisi</p> <p><b>Son Güncelleme:</b> {updated}</p> <p><a href='/health'>/health</a> | <a href='/latest'>/latest</a> | <a href='/history'>/history</a> | <a href='/predict'>/predict</a> | <a href='/signal'>/signal</a> </p> </body></html> """)app/routers/base.py+14-46