Project rename and restructure
This commit is contained in:
16
main.py
Normal file
16
main.py
Normal file
@ -0,0 +1,16 @@
|
||||
import logging
|
||||
|
||||
from fastapi import FastAPI
|
||||
|
||||
from hopper.api.dependencies import create_game_engine
|
||||
from hopper.api.views import router
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
format="%(asctime)s %(levelname)s - %(message)s",
|
||||
)
|
||||
logging.info("JFK Game server started.")
|
||||
|
||||
app = FastAPI()
|
||||
app.include_router(router, tags=["Game API"])
|
||||
create_game_engine()
|
||||
Reference in New Issue
Block a user