automated terminal push

This commit is contained in:
2025-04-30 07:38:19 -04:00
committed by Software Shinobi
parent bff195d5fe
commit 5bfbd57097
25 changed files with 822 additions and 7 deletions

36
app.py Normal file
View 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