File size: 509 Bytes
8efce19
0a9e54c
b3adc22
8e18d18
0a9e54c
a9f1f12
466eeae
b3adc22
9675b3c
b3adc22
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import subprocess
from fastapi import FastAPI
from fastapi.responses import HTMLResponse
app = FastAPI()

subprocess.Popen(["python3", "TimeStampBuddy/cron_processor.py"])

@app.get("/", response_class=HTMLResponse)
def welcome():
    return """
    <div>
        <h1>Hello!</h1>
        <p>This service powers the TimeStampBuddy activity on Twitter.</p>
        <p>For more details, visit 
            <a href="https://github.com/Mihaiii/TimeStampBuddy">GitHub Repository</a>.
        </p>
    </div>
    """