Files
adamantium/slices/admin/actions/sessions/create.rb

16 lines
278 B
Ruby

module Admin
module Actions
module Sessions
class Create < Action
include Deps["commands.sessions.create"]
def handle(req, res)
create.(email: req.params[:email])
res.redirect_to "/admin"
end
end
end
end
end