Skip to content

Commit 83e8385

Browse files
committed
Remove authentication to Products
1 parent 486351e commit 83e8385

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

pdv/app/controllers/auth_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def authenticate
88
user = User.find_by(username: params[:username])
99
response = {
1010
name: user.name,
11+
created_at: user.created_at,
1112
access: user.access,
1213
auth_token: command.result
1314
}

pdv/app/controllers/products_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class ProductsController < ApplicationController
22
before_action :set_product, only: [:show, :update, :destroy]
3+
skip_before_action :authenticate_request, :only => [:index, :show]
34

45
# GET /products
56
def index

0 commit comments

Comments
 (0)