Skip to content
Snippets Groups Projects
Commit 19923399 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Limit resource list actions to the documented ones

parent ddf8aa72
Branches
Tags
No related merge requests found
Pipeline #228 passed
......@@ -28,11 +28,13 @@ module Passwordstate
end
def folders
ResourceList.new self, Passwordstate::Resources::Folder
ResourceList.new self, Passwordstate::Resources::Folder,
only: %i[all search post]
end
def hosts
ResourceList.new self, Passwordstate::Resources::Folder
ResourceList.new self, Passwordstate::Resources::Host,
only: %i[search post delete]
end
def passwords
......@@ -40,7 +42,8 @@ module Passwordstate
end
def password_lists
ResourceList.new self, Passwordstate::Resources::PasswordList
ResourceList.new self, Passwordstate::Resources::PasswordList,
except: %i[put delete]
end
def valid?
......
......@@ -3,6 +3,8 @@ module Passwordstate
class Folder < Passwordstate::Resource
api_path 'folders'
index_field :folder_id
accessor_fields :folder_name,
:description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment