Skip to content

Commit

Permalink
url added, HTTPException
Browse files Browse the repository at this point in the history
  • Loading branch information
cdvandyk-ca committed Nov 11, 2024
1 parent 8a963dd commit cb4f5cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fastapi/app/main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from fastapi import FastAPI
from fastapi import FastAPI, HTTPException
from uvicorn import run
from typing import Union
import uvicorn
from pydantic import BaseModel


app = FastAPI()

url = "https://en.wikipedia.org/wiki/Water_scarcity"

# def getArticle
def getArticle(url):
try:
Expand Down

0 comments on commit cb4f5cd

Please sign in to comment.