Remove obsolete api blueprint.
This commit is contained in:
parent
0ea35808f3
commit
6fe5085c9f
@ -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 <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
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 *
|
Loading…
Reference in New Issue
Block a user