Closed makupi closed 3 years ago
This is good stuff, thank you @makupi!
Something to consider: while we only cover New Horizons right now, we'll eventually have endpoints for other games. As-is we could add endpoints for the other games to the existing files (furniture.py
, fish.py
, etc.). Other options might be to create separate directories for each game (for now, an ACNH
folder, and in the future ACNL
, etc.), or just name the files with a game prefix (e.g. nh_furniture.py
, nh_fish.py
, etc.).
The other thought I have is moving the static directory back to the root, since it's its own thing separate from the Python app.
@KevinPayravi I can move the existing endpoints to a separate ACNH folder, probably easier to do right now than later and I can try to move the static
back but flask was being somewhat weird about that 😅
app.py
app entrypoint for uWSGI orflask run
nookipedia/__init__.py
contains app initialization/setupnookipedia/cache.py
cache in a separate file so it can be imported without circular import issuesnookipedia/cargo.py
cargo accessnookipedia/config.py
config and constantsnookipedia/dashboard.py
dashboard setupnookipedia/db.py
contains database accessnookipedia/errors.py
error handling (the error handlers are now registered in__init__.py
though instead of decorator)nookipedia/middlewares.py
authorization "middleware"nookipedia/models.py
formatting of datanookipedia/api/*
contains all the routers, now handled through blueprints (registered innookipedia/__init__.py
)Formatted code with
black . --line-length 100
Closes #54