mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 08:53:00 +08:00
19 lines
458 B
Python
19 lines
458 B
Python
import logging
|
|
from typing import Any
|
|
|
|
from fastapi import APIRouter, Depends
|
|
|
|
from felicity.apps.job.services import JobService
|
|
|
|
jobs = APIRouter(tags=["job"], prefix="/jobs")
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
@jobs.get("", response_model=None)
|
|
async def all_jobs(job_service: JobService = Depends(JobService)) -> Any:
|
|
"""
|
|
Retrieve all jobs
|
|
"""
|
|
return await job_service.all()
|