Skip to content

Instantly share code, notes, and snippets.

@rahul-yr
Created June 15, 2022 10:22
Show Gist options
  • Save rahul-yr/fbe26707e18d778008f8d00552da492a to your computer and use it in GitHub Desktop.
Save rahul-yr/fbe26707e18d778008f8d00552da492a to your computer and use it in GitHub Desktop.
Here is the main file for url shorteners
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