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",
|
|
|
|
description="Endpoints for job board scrapers",
|
|
|
|
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"}
|