From 3f075c7794ca7cc6e3c566591e9929859c6c325c Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 29 Jan 2017 01:30:32 +0100 Subject: API for apps to register for push notifications --- config/routes.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 87f35770a..bce345f2e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -118,6 +118,9 @@ Rails.application.routes.draw do resources :blocks, only: [:index] resources :favourites, only: [:index] + post '/devices/register', to: 'devices#register', as: :register_device + post '/devices/unregister', to: 'devices#unregister', as: :unregister_device + resources :follow_requests, only: [:index] do member do post :authorize -- cgit