Skip to content
Extraits de code Groupes Projets
Valider 3a4b5961 rédigé par Eugen Rochko's avatar Eugen Rochko
Parcourir les fichiers

Method to fetch a single notification

parent deedf133
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -20,4 +20,8 @@ class Api::V1::NotificationsController < ApiController ...@@ -20,4 +20,8 @@ class Api::V1::NotificationsController < ApiController
set_pagination_headers(next_path, prev_path) set_pagination_headers(next_path, prev_path)
end end
def show
@notification = Notification.where(account: current_account).find(params[:id])
end
end end
...@@ -114,7 +114,7 @@ Rails.application.routes.draw do ...@@ -114,7 +114,7 @@ Rails.application.routes.draw do
end end
end end
resources :notifications, only: [:index] resources :notifications, only: [:index, :show]
resources :favourites, only: [:index] resources :favourites, only: [:index]
resources :accounts, only: [:show] do resources :accounts, only: [:show] do
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter