refactor: api routes

This commit is contained in:
Kentai Radiquum 2025-05-05 20:46:49 +05:00
parent c74170a14d
commit 802b755d29
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
6 changed files with 95 additions and 55 deletions

View file

@ -5,7 +5,8 @@ import os
import sys
from api import api
from api import apiPack
from api import apiPacks
def resource_path(relative_path):
@ -21,7 +22,10 @@ app = Flask(
)
app.register_blueprint(api)
app.register_blueprint(apiPack)
app.register_blueprint(apiPacks)
if os.getenv("is_dev") == "True":
from flask_cors import CORS