Refactor app in to its own slice
This commit is contained in:
12
slices/main/actions/trips/index.rb
Normal file
12
slices/main/actions/trips/index.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Main
|
||||
module Actions
|
||||
module Trips
|
||||
class Index < Adamantium::Action
|
||||
def handle(req, res)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
15
slices/main/actions/trips/show.rb
Normal file
15
slices/main/actions/trips/show.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Main
|
||||
module Actions
|
||||
module Trips
|
||||
class Show < Adamantium::Action
|
||||
include Deps["views.trips.show"]
|
||||
|
||||
def handle(req, res)
|
||||
res.render show, id: req.params[:id]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user