Skip to content

Commit

Permalink
just checking
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmisankepally committed Nov 14, 2019
1 parent 7b90e1f commit dca2945
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
POSTGRES_URL = "127.0.0.1:5432"
POSTGRES_DB = "project"


@app.route('/upload', methods=['GET', 'POST'])
def upload():
if flask.request.method == 'POST':
Expand All @@ -19,18 +20,22 @@ def upload():
<input type="submit" value="Submit"><br>
</form>'''


@app.route('/compare/<path:experiment_one>/<path:experiment_two>')
def compare():
return 'This is the compare function for two experiments.'


@app.route('/experiment')
def experiment():
return 'This is the view of an experiment'


@app.route('/hello')
def hello():
return 'Hello!'



if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0')
# Connect to an existing database
Expand Down

0 comments on commit dca2945

Please sign in to comment.