class UsersController < ApplicationController
    before_action :authorized, except: [:create]

    def index 
        @users = User.all 
        render json: @users
    end

    def show
        @user = User.find_by(id: params[:id])
        render json: @user
    end
    
    def create
        
    end

    def update
    end

    def destroy
    end

end
