16 lines
305 B
Python
16 lines
305 B
Python
from fastapi import APIRouter
|
|
|
|
from service import agent_service
|
|
|
|
router = APIRouter(prefix="/agent", tags=["Agent"])
|
|
|
|
|
|
@router.post("/tip/generate")
|
|
def generate_tip():
|
|
return agent_service.generate_tip_agent()
|
|
|
|
|
|
@router.get("/tip/latest")
|
|
def latest_tip():
|
|
return agent_service.get_latest_tip()
|