from django.urls import path, include
from .views import (
    RegisterApplicationAPIView,
    RegisteredApplicationApprovalAPIView,
    GetTokensAPIView,
    RefreshTokenAPIView,
)

app_name = "integration"

urlpatterns = [
    path("register-app/", RegisterApplicationAPIView.as_view(), name="register-app"),
    path(
        "approve-app/",
        RegisteredApplicationApprovalAPIView.as_view(),
        name="approve-app",
    ),
    path("tokens/", GetTokensAPIView.as_view(), name="tokens"),
    path("refresh-token/", RefreshTokenAPIView.as_view(), name="refresh-token"),
]
