demarches-normaliennes/app/controllers/api_geo_test_controller.rb

14 lines
252 B
Ruby
Raw Normal View History

2019-12-18 17:10:26 +01:00
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