mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 19:25:34 +00:00
22 lines
569 B
Python
22 lines
569 B
Python
"""
|
|
This module contains all the Flask Blueprints and API routes. It also contains all the globals list
|
|
that are used through-out the app. It handles the initialization of the watchdog,
|
|
checking and creating config dirs and starting the re-indexing process using a background thread.
|
|
"""
|
|
from app import functions
|
|
from app import helpers
|
|
from app import prep
|
|
|
|
|
|
@helpers.background
|
|
def initialize() -> None:
|
|
"""
|
|
Runs all the necessary setup functions.
|
|
"""
|
|
functions.start_watchdog()
|
|
prep.create_config_dir()
|
|
functions.run_checks()
|
|
|
|
|
|
initialize()
|