from fastapi import APIRouter, Request, Response, Body, HTTPException,Header
from twilio.twiml.messaging_response import Body, Message, Redirect, MessagingResponse
from fastapi.responses import PlainTextResponse
import re
import sys
sys.path.insert(0, '/home/buinhuphu/Dropbox/FastAPI/covid-chatbot')
import settings
import httpx
from ..services.stats_service import getUsStats,getUkStats
from ..services.news_service import getNews
router = APIRouter()

@router.get("/health-check")
async def health():
    return {"Message":'healthy news endpoint'}

@router.get("/theguardian")
async def getGoodNews():
    return getNews()

from fastapi import APIRouter, Request, Response, Body, HTTPException,Header
from twilio.twiml.messaging_response import Body, Message, Redirect, MessagingResponse
from fastapi.responses import PlainTextResponse
import re
import sys
sys.path.insert(0, '/home/buinhuphu/Dropbox/FastAPI/covid-chatbot')
import settings
import httpx
from ..services.stats_service import getUsStats,getUkStats
from ..services.news_service import getNews
router = APIRouter()

@router.get("/health-check")
async def health():
    return {"Message":'healthy news endpoint'}

@router.get("/theguardian")
async def getGoodNews():
    return getNews()
