2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2014-08-26 07:54:12 +00:00
|
|
|
Zammad::Application.routes.draw do
|
|
|
|
api_path = Rails.configuration.api_path
|
|
|
|
|
|
|
|
# groups
|
2015-04-27 13:42:53 +00:00
|
|
|
match api_path + '/online_notifications', to: 'online_notifications#index', via: :get
|
2017-04-13 08:15:26 +00:00
|
|
|
match api_path + '/online_notifications/:id', to: 'online_notifications#show', via: :get
|
2015-04-27 13:42:53 +00:00
|
|
|
match api_path + '/online_notifications/:id', to: 'online_notifications#update', via: :put
|
2015-10-19 06:55:21 +00:00
|
|
|
match api_path + '/online_notifications/:id', to: 'online_notifications#destroy', via: :delete
|
2015-04-27 13:42:53 +00:00
|
|
|
match api_path + '/online_notifications/mark_all_as_read', to: 'online_notifications#mark_all_as_read', via: :post
|
2014-08-26 07:54:12 +00:00
|
|
|
|
2015-04-27 14:15:29 +00:00
|
|
|
end
|