diff --git a/accountant/api/__init__.py b/accountant/api/__init__.py deleted file mode 100644 index 9ce57af..0000000 --- a/accountant/api/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -""" - This file is part of Accountant. - - Accountant is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Accountant 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 Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with Accountant. If not, see . -""" -from flask import Blueprint - -from flask.ext.restplus import Api -from flask.ext.cors import CORS - -blueprint = Blueprint('api', __name__) - -authorizations = { - 'apikey': { - 'type': 'apiKey', - 'in': 'header', - 'name': 'Authorization' - } -} - -api = Api(blueprint, doc='/doc/', authorizations=authorizations) -CORS(blueprint) - -# Load all views. -from .views import *