from flask import request
from .mint import Mint
from themint import app

mint = Mint()

@app.route('/', methods=['GET'])
def index():
    return "Mint OK"

@app.route('/title/<title_number>', methods=['POST'])
def post(title_number):
    app.logger.info("Recieved title number %s to mint new record with json %s" % (title_number, request.json))
    r = mint.create(request.json)
    app.logger.info("Response status code %s" % r.status_code)
    return r.text, r.status_code

@@ -18,16 +18,31 @@
  request
+, make_response
 %0Afrom .m
@@ -462,16 +462,30 @@
  return 
+make_response(
 r.text, 
@@ -497,9 +497,10 @@
 tus_code
+)
 %0A

Correct response