joakimk/pipeline

View on GitHub
app/controllers/api_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ApiController < ApplicationController
  before_filter :check_token

  def check_token
    render nothing: true, status: :unauthorized unless App.api_token == params[:token]
  end
end