Class: Api::V1::MesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/api/v1/mes_controller.rb

Overview

Just a demo api controller you can remove this

Instance Method Summary collapse

Instance Method Details

#destroyObject



7
8
9
10
# File 'app/controllers/api/v1/mes_controller.rb', line 7

def destroy
  current_user.destroy
  render json: {}
end

#showObject



3
4
5
# File 'app/controllers/api/v1/mes_controller.rb', line 3

def show
  render json: current_user
end