mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2026-11-09 18:17:07 +01:00
update de fou
This commit is contained in:
@@ -14,5 +14,6 @@ urlpatterns = [
|
||||
path('web3/', views.read_data, name='read_data'),
|
||||
path('api/match_list/', match_list_json, name='match_list_json'),
|
||||
path('api/player_list/', player_list_json, name='player_list_json'),
|
||||
path('api/tournoi_list/', tournoi_list_json, name='tournoi_list_json')
|
||||
path('api/tournoi_list/', tournoi_list_json, name='tournoi_list_json'),
|
||||
path('trigger-error/', views.trigger_error)
|
||||
]
|
||||
|
||||
@@ -9,10 +9,14 @@ from django.contrib.auth.models import User
|
||||
from django.contrib.auth import authenticate
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
from rest_framework import viewsets
|
||||
from django.http import HttpResponse
|
||||
|
||||
import json
|
||||
import uuid
|
||||
|
||||
def trigger_error(request):
|
||||
raise ValueError("This is a test error to generate a 500 response.")
|
||||
|
||||
def index(request):
|
||||
return render(request, 'index.html')
|
||||
|
||||
@@ -172,4 +176,4 @@ def write_data(request):
|
||||
# # Attente de la confirmation de la transaction
|
||||
# tx_receipt = web3.eth.wait_for_transaction_receipt(tx_hash)
|
||||
# print("Transaction receipt:", tx_receipt)
|
||||
print("-----------------------------")
|
||||
print("-----------------------------")
|
||||
|
||||
Reference in New Issue
Block a user