rename to one trip
This commit is contained in:
20
one_trip_api/api/views.py
Normal file
20
one_trip_api/api/views.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from rest_framework import viewsets
|
||||
|
||||
from api.serializers import *
|
||||
from api.models import *
|
||||
|
||||
class RecipeView(viewsets.ModelViewSet):
|
||||
serializer_class = RecipeSerializer
|
||||
queryset = Recipe.objects.all()
|
||||
|
||||
class IngredientView(viewsets.ModelViewSet):
|
||||
serializer_class = IngredientSerializer
|
||||
queryset = Ingredient.objects.all()
|
||||
|
||||
class HomegroupView(viewsets.ModelViewSet):
|
||||
serializer_class = HomegroupSerializer
|
||||
queryset = Homegroup.objects.all()
|
||||
|
||||
class HomegroupInviteView(viewsets.ModelViewSet):
|
||||
serializer_class = InviteSerializer
|
||||
queryset = HomegroupInvite.objects.all()
|
||||
Reference in New Issue
Block a user