Sha256: 9dede1a40f8c5852199c3c3b455938ff4d424d177e52037f1df3887112f78327

Contents?: true

Size: 497 Bytes

Versions: 10

Compression:

Stored size: 497 Bytes

Contents

require_dependency "cadenero/application_controller"
# Dashboard Controller that can be overrided for be the root access point of your API app
module Cadenero
  #name space for this API version
  class V1::Account::DashboardController < Cadenero::ApplicationController
    # Protecting the site
    before_filter :authenticate_user!

    # Default action
    def index
      render json: {message: "Welcome #{current_user.email}"}, status: :ok # Welcome message for current_user
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cadenero-0.0.2.b10 app/controllers/cadenero/v1/account/dashboard_controller.rb
cadenero-0.0.2.b8 app/controllers/cadenero/v1/account/dashboard_controller.rb
cadenero-0.0.2.b7 app/controllers/cadenero/v1/account/dashboard_controller.rb
cadenero-0.0.2.b6 app/controllers/cadenero/v1/account/dashboard_controller.rb
cadenero-0.0.2.b5 app/controllers/cadenero/v1/account/dashboard_controller.rb
cadenero-0.0.2.b4 app/controllers/cadenero/v1/account/dashboard_controller.rb
cadenero-0.0.2.b3 app/controllers/cadenero/v1/account/dashboard_controller.rb
cadenero-0.0.2.b2 app/controllers/cadenero/v1/account/dashboard_controller.rb
cadenero-0.0.2.b1 app/controllers/cadenero/v1/account/dashboard_controller.rb
cadenero-0.0.2.a3 app/controllers/cadenero/v1/account/dashboard_controller.rb