Add routes specifically for all angular subroutes so that 404s will start working again. Add a warning in app.js to hopefully ensure that new routes get created when necessary.

This commit is contained in:
yackob03 2013-10-13 22:06:31 -04:00
parent c13679e962
commit e3db0398ce
3 changed files with 23 additions and 4 deletions

View file

@ -35,11 +35,26 @@ def load_user(username):
@app.route('/', methods=['GET'], defaults={'path': ''})
@app.route('/<path:path>') # Catch all
@app.route('/repository/<path:path>', methods=['GET'])
def index(path):
return send_file('templates/index.html')
@app.route('/plans/')
def plans():
return index('')
@app.route('/guide/')
def guide():
return index('')
@app.route('/user/')
def user():
return index('')
@app.route('/status', methods=['GET'])
def status():
return make_response('Healthy')