Skip to content

Commit

Permalink
Merge pull request #5 from VictorGM01/cria-view-set
Browse files Browse the repository at this point in the history
Cria ViewSet para visualização dos dados
  • Loading branch information
VictorGM01 authored Dec 24, 2022
2 parents 5d0c0c0 + 4fdb752 commit 5eee0b0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions to_do_list/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
from django.shortcuts import render
from rest_framework import viewsets
from to_do_list.models import Tarefa
from to_do_list.serializer import TarefaSerializer

# Create your views here.

class TarefaViewSet(viewsets.ModelViewSet):
queryset = Tarefa.objects.all()
serializer_class = TarefaSerializer

0 comments on commit 5eee0b0

Please sign in to comment.