mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
set up plugins
This commit is contained in:
+7
-1
@@ -6,6 +6,7 @@ from flask import Flask
|
||||
from flask_compress import Compress
|
||||
from flask_cors import CORS
|
||||
|
||||
from .plugins import lyrics as lyrics_plugin
|
||||
from app.api import (
|
||||
album,
|
||||
artist,
|
||||
@@ -17,7 +18,8 @@ from app.api import (
|
||||
search,
|
||||
send_file,
|
||||
settings,
|
||||
lyrics
|
||||
lyrics,
|
||||
plugins,
|
||||
)
|
||||
|
||||
|
||||
@@ -46,4 +48,8 @@ def create_api():
|
||||
app.register_blueprint(colors.api)
|
||||
app.register_blueprint(lyrics.api)
|
||||
|
||||
# Plugins
|
||||
app.register_blueprint(plugins.api)
|
||||
app.register_blueprint(lyrics_plugin.api)
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user