repl.it
@pieromqwerty/

Oryp-Pass-API

Python

This is the API for the Pass System used for the Pass Creation and Distribution

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from flask import Flask, render_template, send_file, flash, request, redirect
from flask_restful import Api, Resource, reqparse
import random
import json
from numpy import *
import requests
from urllib.parse import urlparse  # Python 3
str_encode = str.encode

#setting up flask
app = Flask(__name__)
api = Api(app)
host='https://api.oryp.org/'

@app.route('/', methods=['GET'])
def home():
	return redirect('https://hoc.oryp.org', 302)

@app.route('/signup', methods=['POST'])

app.run(host='0.0.0.0',port=8080)