Flask blueprint to make an object ajax accessible