VRChatAPI/app/api/system.py
Unstealable 944584e28a Update
2025-06-27 14:10:40 +02:00

17 lines
356 B
Python

from fastapi import APIRouter
from app.vrchat_context import VRChatContext
def load_context():
VRChatContext.load()
vrchat = VRChatContext.get()
router = APIRouter()
@router.get("/ping")
def ping():
return {"message": "pong"}
@router.get("/status")
def status_check():
return {"status": "ok" if vrchat.auth_cookie else "not authenticated"}