2020-01-29 06:50:09 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# OpenLP - Open Source Lyrics Projection #
|
|
|
|
# ---------------------------------------------------------------------- #
|
2022-02-06 09:10:17 +00:00
|
|
|
# Copyright (c) 2008-2022 OpenLP Developers #
|
2020-01-29 06:50:09 +00:00
|
|
|
# ---------------------------------------------------------------------- #
|
|
|
|
# This program is free software: you can redistribute it and/or modify #
|
|
|
|
# it under the terms of the GNU General Public License as published by #
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or #
|
|
|
|
# (at your option) any later version. #
|
|
|
|
# #
|
|
|
|
# This program is distributed in the hope that it will be useful, #
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
|
|
# GNU General Public License for more details. #
|
|
|
|
# #
|
|
|
|
# You should have received a copy of the GNU General Public License #
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
|
|
|
|
##########################################################################
|
|
|
|
|
2020-01-27 22:57:58 +00:00
|
|
|
from openlp.core.api.versions.v2.controller import controller_views
|
|
|
|
from openlp.core.api.versions.v2.core import core
|
|
|
|
from openlp.core.api.versions.v2.service import service_views
|
2020-05-16 06:11:21 +00:00
|
|
|
from openlp.core.api.versions.v2.plugins import plugins
|
2020-01-27 22:57:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
def register_blueprints(app):
|
|
|
|
app.register_blueprint(controller_views, url_prefix='/api/v2/controller/')
|
|
|
|
app.register_blueprint(core, url_prefix='/api/v2/core/')
|
|
|
|
app.register_blueprint(service_views, url_prefix='/api/v2/service/')
|
2020-05-16 06:11:21 +00:00
|
|
|
app.register_blueprint(plugins, url_prefix='/api/v2/plugins/')
|