Skip to content

Commit

Permalink
Merge pull request #11 from kalbermattenm/routes
Browse files Browse the repository at this point in the history
Rename routes
  • Loading branch information
kalbermattenm authored Mar 7, 2018
2 parents 88e506f + fb0312f commit b4e70b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pytree/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def home(name=None):
return render_template('home.html', name=name)


@app.route("/get_profile")
@app.route("/profile/get")
@cross_origin()
def get_profile():
cpotree = point_clouds = pytree_config['vars']['cpotree_executable']
Expand All @@ -55,7 +55,7 @@ def get_profile():
return out


@app.route("/get_profile_gmf1/profile")
@app.route("/profile_v1/get")
@cross_origin()
def get_profile_gmf1():

Expand Down Expand Up @@ -191,7 +191,7 @@ def get_profile_gmf1():


#proxy to gmf raster dem/dsm profile service
@app.route("/get_gmf_dem_dsm")
@app.route("/dem/get")
@cross_origin()
def get_gmf_dem_dsm():

Expand Down Expand Up @@ -221,7 +221,7 @@ def get_gmf_dem_dsm():

return jsonify(demdsm)

@app.route("/profile_config_gmf2")
@app.route("/profile/config")
@cross_origin()
def profile_config_gmf2():
return jsonify(pytree_config['vars'])
Expand Down

0 comments on commit b4e70b4

Please sign in to comment.