Bertrand Benjamin
f9fbb2d076
All checks were successful
continuous-integration/drone/push Build is passing
15 lines
277 B
Python
15 lines
277 B
Python
from botte import request, get
|
|
|
|
@get('/age')
|
|
def age_de():
|
|
|
|
name = request.query.name
|
|
age = request.query.age
|
|
|
|
if age > 1:
|
|
return name + " a " + age + " ans."
|
|
elif age <= 0:
|
|
return "Mouai..."
|
|
else:
|
|
return name + " a " + age + " an."
|