jeevanjohnson / local-osu-server

the name says it all
31 stars 5 forks source link

Finish Login #22

Closed github-actions[bot] closed 4 months ago

github-actions[bot] commented 4 months ago

https://github.com/jeevanjohnson/local-osu-server/blob/b912a7b0b8d291da6deb2568aaf55807893223bc/server/osu_client/bancho_handler.py#L19


from fastapi.routing import APIRouter
from fastapi import Header, Depends

bancho_handling_router = APIRouter(prefix="/c")

def logged_in(osu_token: str | None) -> bool:
    if osu_token:
        return True

    return False

@bancho_handling_router.get('/')
async def handle_request(
    osu_token: str | None = Header(default=None)
):

    if not logged_in(osu_token):
        # TODO: Finish Login
        ...

    # TODO: Finish Everything Related To Send Packets to the Player
github-actions[bot] commented 4 months ago

Closed in 75042cbba830b3f3189cf38c1d55f5196f58fc05