Makes the flask decorator actually work