feat: Initial observations endpoint
This commit is contained in:
7
app/controllers/api/api_controller.rb
Normal file
7
app/controllers/api/api_controller.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API
|
||||
class APIController < ApplicationController
|
||||
skip_forgery_protection
|
||||
end
|
||||
end
|
||||
15
app/controllers/api/v1/weather/observations_controller.rb
Normal file
15
app/controllers/api/v1/weather/observations_controller.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API
|
||||
module V1
|
||||
module Weather
|
||||
class ObservationsController < APIController
|
||||
def create
|
||||
Rails.logger.debug 'Create new observation'
|
||||
|
||||
head :ok
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user