DannyJamesHidalgo / pitty-party-api

https://pitty-party-api.vercel.app
0 stars 0 forks source link

update Urls for login and register #3

Closed DannyJamesHidalgo closed 3 months ago

DannyJamesHidalgo commented 3 months ago
from django.contrib import admin
from django.urls import include, path
from rest_framework import routers
from raterapi.views import register_user, login_user

router = routers.DefaultRouter(trailing_slash=False)

urlpatterns = [
    path("", include(router.urls)),
    path("register", register_user),
    path("login", login_user),
]
DannyJamesHidalgo commented 3 months ago

example above