first commit
This commit is contained in:
commit
34ea15a54d
246 changed files with 18660 additions and 0 deletions
13
backend/app/routers/share.py
Normal file
13
backend/app/routers/share.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from fastapi import APIRouter, Depends
|
||||
from fastapi.responses import HTMLResponse
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.database import get_db
|
||||
from app.routers.public import _share_html_for_slug
|
||||
|
||||
router = APIRouter(tags=["share"])
|
||||
|
||||
|
||||
@router.get("/share/events/{slug}", response_class=HTMLResponse)
|
||||
def share_event_short_url(slug: str, db: Session = Depends(get_db)):
|
||||
return HTMLResponse(_share_html_for_slug(slug, db))
|
||||
Loading…
Add table
Add a link
Reference in a new issue