9 lines
182 B
Python
9 lines
182 B
Python
from fastapi import FastAPI, HTTPException
|
|
from fastapi.responses import RedirectResponse
|
|
|
|
app = FastAPI()
|
|
|
|
@app.get("/")
|
|
def home():
|
|
return {"message": "URL Shortener API"}
|
|
|