Modifying all URL for flask app

prefixing /api/ for all calls
This is to enable routing through nginx