2020-06-18 21:54:16 +00:00
|
|
|
from fastapi import FastAPI
|
|
|
|
from pizzatool.api_helpers import CRUDMapper, RelationshipMapper
|
2020-06-18 04:26:24 +00:00
|
|
|
from pizzatool.model import Ingredient, Pizza, PizzaIngredient
|
2020-06-18 02:55:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
app = FastAPI()
|
2020-06-18 21:54:16 +00:00
|
|
|
CRUDMapper(app, Ingredient)
|
|
|
|
CRUDMapper(app, Pizza)
|
|
|
|
RelationshipMapper(app, Pizza, Ingredient, PizzaIngredient)
|