Skip to content

Commit

Permalink
Add list APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Nov 16, 2017
1 parent 714df7a commit 92d2690
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/controllers/api/v1/lists_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# frozen_string_literal: true

class Api::V1::ListsController < Api::BaseController
def index
# TODO
end

def show
# TODO
end

def create
# TODO
end

def update
# TODO
end

def destroy
# TODO
end
end
1 change: 1 addition & 0 deletions app/models/list.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
# == Schema Information
#
# Table name: lists
Expand Down
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@
end
end

resources :lists, only: [:index, :create, :show, :update, :destroy]

namespace :web do
resource :settings, only: [:update]
resource :embed, only: [:create]
Expand Down

0 comments on commit 92d2690

Please sign in to comment.