Skip to content

Instantly share code, notes, and snippets.

View rashiq's full-sized avatar
☃️
hi

Rashiq rashiq

☃️
hi
View GitHub Profile
#!flask/bin/python
from flask import Flask, jsonify, abort, request, make_response, url_for
from flask.ext.httpauth import HTTPBasicAuth
app = Flask(__name__, static_url_path = "")
auth = HTTPBasicAuth()
@auth.get_password
def get_password(username):
if username == 'miguel':