JobSpy/main.py

17 lines
403 B
Python
Raw Normal View History

2023-07-06 16:44:38 -07:00
from fastapi import FastAPI
2023-07-08 07:34:55 -07:00
2023-07-09 13:15:39 -07:00
from supabase_py import create_client, Client
2023-07-06 16:44:38 -07:00
from api import router as api_router
2023-07-09 13:15:39 -07:00
app = FastAPI(
title="JobSpy Backend",
2023-08-19 16:46:03 -07:00
description="Endpoints for job boardLinkedIn, Indeed, and ZipRecruiterscrapers",
2023-07-09 13:15:39 -07:00
version="1.0.0",
)
2023-07-06 16:44:38 -07:00
app.include_router(api_router)
2023-07-09 16:42:44 -07:00
2023-07-09 13:15:39 -07:00
@app.get("/", tags=["health"])
async def health_check():
return {"message": "JobSpy ready to scrape"}