Files
lenape-jobs-fetcher/app.py

37 lines
562 B
Python

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