File size: 294 Bytes
a61be63
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from fastapi import FastAPI, APIRouter
from app.views import app as django_app

router = APIRouter()

@router.get("/api/diamonds/")
def get_diamonds():
    return django_app.get_diamonds()

@router.get("/api/brand_products/")
def get_brand_products():
    return django_app.get_brand_products()