Add trips
This commit is contained in:
16
slices/admin/actions/trips/create.rb
Normal file
16
slices/admin/actions/trips/create.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Admin
|
||||
module Actions
|
||||
module Trips
|
||||
class Create < Admin::Action
|
||||
|
||||
include Deps["commands.trips.create"]
|
||||
|
||||
def handle(req, res)
|
||||
create.call(trip: req.params[:trip])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user