Tesis 1.0.0
Loading...
Searching...
No Matches
urls.py
Go to the documentation of this file.
1"""
2URL configuration for mp_integration project.
3
4The `urlpatterns` list routes URLs to views. For more information please see:
5 https://docs.djangoproject.com/en/5.2/topics/http/urls/
6Examples:
7Function views
8 1. Add an import: from my_app import views
9 2. Add a URL to urlpatterns: path('', views.home, name='home')
10Class-based views
11 1. Add an import: from other_app.views import Home
12 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
13Including another URLconf
14 1. Import the include() function: from django.urls import include, path
15 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
16"""
17from django.urls import path, include
18from django.http import JsonResponse
19
20def health_check(request):
21 """
22 Endpoint simple para verificar que el servicio está funcionando
23 """
24 return JsonResponse({"status": "ok", "service": "mercadopago-integration"})
25
26urlpatterns = [
27 path('payment/', include('payment_service.urls')),
28 path('health/', health_check, name='health-check'),
29]
health_check(request)
Definition urls.py:20