automated terminal push
This commit is contained in:
36
app.py
Normal file
36
app.py
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
Reference in New Issue
Block a user