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.

37 lines
562 B

from flask import Flask, request, jsonify
from flask_cors import CORS, cross_origin
import datetime
import uuid
from fetchjobs import writeFile, dowork, read
app = Flask(__name__)
CORS(app)
@app.route('/')
def hello():
return 'Hello, Universe! With ❤ from Software Shinobi (www.softwareshinobi.com)'
@app.route('/jobs/load')
def fetchJobs():
thing = dowork()
print("thing1: ",thing)
thing2 = writeFile(thing)
print("thing2: ",thing2)
return thing
@app.route('/jobs/')
def ddsd():
loaded = read()
return loaded