refactor(backend): ♻️ add initial support for global dependency injection

This commit is contained in:
hay-kot
2021-08-28 14:16:00 -08:00
parent 0f6f81eb27
commit da501adce8
2 changed files with 17 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
from functools import lru_cache
from .data_access_layer import DatabaseAccessLayer
db = DatabaseAccessLayer()
@lru_cache
def get_database():
return db