Merge pull request #1936 from internetee/1869-repp-list-access-to-poll-messages

implement get all list notifications repp endpoint
This commit is contained in:
Timo Võhmar 2021-05-06 17:27:41 +03:00 committed by GitHub
commit ca06ae6414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 1 deletions

View file

@ -55,7 +55,11 @@ Rails.application.routes.draw do
resources :auctions, only: %i[index]
resources :retained_domains, only: %i[index]
namespace :registrar do
resources :notifications, only: [:index, :show, :update]
resources :notifications, only: [:index, :show, :update] do
collection do
get '/all_notifications', to: 'notifications#all_notifications'
end
end
resources :nameservers do
collection do
put '/', to: 'nameservers#update'