SHARE
TWEET

server.py

a guest Apr 18th, 2019 351 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import bottle
  2. import art
  3. import json
  4.  
  5. @bottle.route("/map.js")
  6. def Rmapjs():
  7.   return bottle.static_file("map.js", root="")
  8.  
  9. @bottle.route("/")
  10. def Rindex():
  11.   return bottle.static_file("index.html", root="")
  12.  
  13. @bottle.route('/art')
  14. def get_art_data():
  15.   return art.process_art_data("https://data.buffalony.gov/resource/v5df-q4ru.json")
  16.  
  17. bottle.run(host="0.0.0.0", port=8080, debug=True)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top