mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 22:24:47 +02:00
Implement shared key authentication to bounces API
This commit is contained in:
parent
b2c5a9a5ec
commit
03182f9222
3 changed files with 11 additions and 1 deletions
|
@ -1,10 +1,12 @@
|
|||
module Api
|
||||
module V1
|
||||
class BouncesController < BaseController
|
||||
before_action :authenticate_shared_key
|
||||
|
||||
# POST api/v1/bounces/
|
||||
def create
|
||||
BouncedMailAddress.record(bounce_params)
|
||||
head(:ok)
|
||||
head(:created)
|
||||
rescue ActionController::ParameterMissing
|
||||
head(:bad_request)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue