2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-01-14 18:46:07 +01:00
|
|
|
class APIGeoTestController < ActionController::Base
|
|
|
|
def regions
|
|
|
|
render json: [{ nom: 'Martinique' }]
|
|
|
|
end
|
|
|
|
|
|
|
|
def departements
|
|
|
|
render json: [{ nom: 'Aisne', code: '02' }]
|
|
|
|
end
|
|
|
|
|
|
|
|
def communes
|
2020-10-07 17:44:21 +02:00
|
|
|
render json: [{ nom: 'Ambléon', code: '01006', codesPostaux: ['01300'] }]
|
2020-01-14 18:46:07 +01:00
|
|
|
end
|
|
|
|
end
|