app/controllers/cadenero/v1/account/dashboard_controller.rb in cadenero-0.0.2.a2 vs app/controllers/cadenero/v1/account/dashboard_controller.rb in cadenero-0.0.2.a3

- old
+ new

@@ -1,11 +1,14 @@ 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: 201 + render json: {message: "Welcome #{current_user.email}"}, status: :ok # Welcome message for current_user end end end