20 lines
575 B
Python
20 lines
575 B
Python
"""
|
|
URL configuration for ai_web project.
|
|
"""
|
|
from django.contrib import admin
|
|
from django.urls import path
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
from django.views.decorators.csrf import csrf_exempt
|
|
from .api import api
|
|
from apps.bounties.payments import handle_webhook
|
|
|
|
urlpatterns = [
|
|
path('admin/', admin.site.urls),
|
|
path('api/', api.urls),
|
|
path('webhooks/stripe/', csrf_exempt(handle_webhook), name='stripe-webhook'),
|
|
]
|
|
|
|
if settings.DEBUG:
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|