blob: e6996ca5b4682f42c4e4cb07daa15af39aa453ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
module Api
module V1
class SwitchboardsController < ApplicationController
respond_to :json
def index
@user = current_user
@switchboards = @user.switchboards
respond_with @switchboards
end
def show
@user = current_user
@switchboard = @user.switchboards.find(params[:id])
respond_with @switchboard
end
end
end
end
|