Add stub of alerts route

This commit is contained in:
2025-10-08 00:07:53 -07:00
parent 6b5d069729
commit 8937ca9fc9
4 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
module Api::V1::Parks
class AlertsController < BaseController
end
end

View File

@@ -0,0 +1,12 @@
module Api::V1::Parks
class BaseController < ApplicationController
before_action :set_park
private
def set_park
@park = Park.find_by(code: params[:park_code])
head :not_found unless @park.present?
end
end
end