Skip to content
Snippets Groups Projects
Commit 7b85a0b7 authored by sandcha's avatar sandcha
Browse files

Init dotations handler

parent 7a17caf9
No related branches found
No related tags found
1 merge request!19Ajoute un endpoint /dotations
class Dotations(object):
def home(**params: dict) -> tuple:
request_body = params["body"]
# vérifier le format
if "dotations" not in request_body:
return {"Error": "Missing 'dotations' field in request body."}, 400
# calculer
# constuire la réponse
return {"hello": "coucou"}, 200
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment