API login/logout with http header token

This commit is contained in:
Min Zeya Phyo
2017-04-14 23:22:58 +06:30
parent db75780267
commit 5ca9615e38
11 changed files with 47 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
class Api::Restaurant::MenuController < ActionController::API
class Api::Restaurant::MenuController < Api::ApiController
before :authenticate_token
#Description
@@ -7,7 +7,7 @@ class Api::Restaurant::MenuController < ActionController::API
def index
menu_detail()
end
#Description
# This API show current order details
# Input Params - menu_id

View File

@@ -1,4 +1,4 @@
class Api::Restaurant::RoomsController < ActionController::API
class Api::Restaurant::RoomsController < Api::ApiController
before_action :set_room, only: [:show]
def index

View File

@@ -1,4 +1,4 @@
class Api::Restaurant::SeatingsController < ActionController::API
class Api::Restaurant::SeatingsController < Api::ApiController
before_action :set_table, only: [:show]
def index

View File

@@ -1,4 +1,4 @@
class Api::Restaurant::TakeawaysController < ActionController::API
class Api::Restaurant::TakeawaysController < Api::ApiController
def index
render json: SeatTable.order("order_by")
end

View File

@@ -1,7 +1,7 @@
class Api::Restaurant::ZonesController < ActionController::API
class Api::Restaurant::ZonesController < Api::ApiController
def index
render json: Zone.includes([:tables, :rooms]).where("is_active = true")
end
end