Revert "add DVLA organisations to API"

This commit is contained in:
Leo Hemsted
2017-04-20 18:21:56 +01:00
committed by GitHub
parent 95b3248a5e
commit c3e56d5d2d
14 changed files with 79 additions and 199 deletions

View File

@@ -1,14 +0,0 @@
from flask import Blueprint, jsonify
from app.dao.dvla_organisation_dao import dao_get_dvla_organisations
from app.errors import register_errors
dvla_organisation_blueprint = Blueprint('dvla_organisation', __name__)
register_errors(dvla_organisation_blueprint)
@dvla_organisation_blueprint.route('', methods=['GET'])
def get_dvla_organisations():
return jsonify({
org.id: org.name for org in dao_get_dvla_organisations()
})