Created
December 12, 2016 14:33
-
-
Save LAMike310/095cf05b600df41e51d34c5edff7bc40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flask | |
from two1.wallet import Wallet | |
from two1.bitserv.flask import Payment | |
import requests | |
import json | |
from sys import argv | |
app = flask.Flask(__name__) | |
payment = Payment(app, Wallet()) | |
@app.route('/start') | |
def getStartAddress(): | |
return "What address are you at now? (Please include street address and zip code): " | |
@app.route('/getEndAddress') | |
def getEndAddress(): | |
return "What address do you want to go to? (Please include street address and zip code): " | |
if __name__ == "__main__": | |
app.run(host="::", port=5000) | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment