Created
June 15, 2022 10:22
-
-
Save rahul-yr/fbe26707e18d778008f8d00552da492a to your computer and use it in GitHub Desktop.
Here is the main file for url shorteners
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI | |
from url_shortener import router | |
# Create the app | |
app = FastAPI() | |
# Add the router | |
app.include_router(router.url_shortener, prefix="/url-shortener") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment