You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
387 B
19 lines
387 B
#!/usr/bin/env python3
|
|
from flask import *
|
|
import secrets
|
|
import nonce
|
|
import os.path
|
|
|
|
app = Flask(__name__)
|
|
app.secret_key = secrets.token_urlsafe()
|
|
app.register_blueprint(nonce.app)
|
|
|
|
ROUTES = {'routes': ['/', '/nonce'] }
|
|
@app.route('/')
|
|
def home():
|
|
return jsonify(ROUTES)
|
|
|
|
nonce.loadUsers( os.path.join('data','userlist.json') )
|
|
if __name__ == '__main__':
|
|
app.run( port=7070)
|
|
|
|
|