mirror of
https://github.com/Radiquum/YAMPD.git
synced 2025-09-08 15:33:57 +05:00
refactor: api routes
This commit is contained in:
parent
c74170a14d
commit
802b755d29
6 changed files with 95 additions and 55 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue