diff --git a/litecord/blueprints/__init__.py b/litecord/blueprints/__init__.py index 701bbd2..f43f9ca 100644 --- a/litecord/blueprints/__init__.py +++ b/litecord/blueprints/__init__.py @@ -31,6 +31,8 @@ from .dms import bp as dms from .icons import bp as icons from .nodeinfo import bp as nodeinfo from .static import bp as static +from .attachments import bp as attachments + __all__ = ['gateway', 'auth', 'users', 'guilds', 'channels', 'webhooks', 'science', 'voice', 'invites', 'relationships', - 'dms', 'icons', 'nodeinfo', 'static'] + 'dms', 'icons', 'nodeinfo', 'static', 'attachments'] diff --git a/litecord/blueprints/attachments.py b/litecord/blueprints/attachments.py index ce78ac5..07a5f7e 100644 --- a/litecord/blueprints/attachments.py +++ b/litecord/blueprints/attachments.py @@ -19,10 +19,10 @@ along with this program. If not, see . from quart import Blueprint -bp = Blueprint(__name__) +bp = Blueprint('attachments', __name__) @bp.route('/attachments' - '///.', + '///.', methods=['GET']) async def _get_attachment(channel_id: int, message_id: int, filename: str, ext: str):