demarches-normaliennes/app/controllers/api_geo_test_controller.rb
2020-01-14 18:46:07 +01:00

13 lines
252 B
Ruby

class APIGeoTestController < ActionController::Base
def regions
render json: [{ nom: 'Martinique' }]
end
def departements
render json: [{ nom: 'Aisne', code: '02' }]
end
def communes
render json: [{ nom: 'Ambléon' }]
end
end