mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 08:56:17 +00:00
Chat as feature
This commit is contained in:
parent
c6b197689a
commit
84c1582446
@ -212,7 +212,12 @@ if config.getbool('features', 'rating', True):
|
|||||||
else:
|
else:
|
||||||
app.add_url_rule('/rest/setRating.view', view_func = disabled_api_feature, methods = [ 'GET', 'POST' ])
|
app.add_url_rule('/rest/setRating.view', view_func = disabled_api_feature, methods = [ 'GET', 'POST' ])
|
||||||
|
|
||||||
|
if config.getbool('features', 'chat', True):
|
||||||
from .chat import *
|
from .chat import *
|
||||||
|
else:
|
||||||
|
app.add_url_rule('/rest/getChatMessages.view', view_func = disabled_api_feature, methods = [ 'GET', 'POST' ])
|
||||||
|
app.add_url_rule('/rest/addChatMessage.view', view_func = disabled_api_feature, methods = [ 'GET', 'POST' ])
|
||||||
|
|
||||||
from .search import *
|
from .search import *
|
||||||
from .playlists import *
|
from .playlists import *
|
||||||
|
|
||||||
|
1
db.py
1
db.py
@ -368,6 +368,7 @@ if config.getbool('features', 'rating', True):
|
|||||||
user = relationship('User')
|
user = relationship('User')
|
||||||
rated = relationship('Track')
|
rated = relationship('Track')
|
||||||
|
|
||||||
|
if config.getbool('features', 'chat', True):
|
||||||
class ChatMessage(Base):
|
class ChatMessage(Base):
|
||||||
__tablename__ = 'chat_message'
|
__tablename__ = 'chat_message'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user