<reponame>felipemaion/financial-management-gate-django
from .auth import urls as urls_auth
from django.urls import path, include
from rest_framework.routers import SimpleRouter
from .views import AporteModelViewSet, WalletModelViewSet, ImportWalletCsv, PositionWallet, MovementModelViewSet

app_name = 'api'
router = SimpleRouter()
router.register("aporte", AporteModelViewSet)
router.register("wallet", WalletModelViewSet)
router.register("movement", MovementModelViewSet, basename='Moviment')


urlpatterns = [
    path('', include(router.urls)),
    path('csv',ImportWalletCsv.as_view()),
    path('position/<int:pk>',PositionWallet.as_view()),
    path('auth/', include(urls_auth)),

]
