intridea/grape — Issue #135: How to restrict to subdomain?
Author: Shpigford
Created: 2012-02-03 14:26:09+00:00
State: open

How do I restrict API access to a subdomain in my Rails app?

I've got Grape running fine using `prefix` (i.e. `example.com/api/v1/posts.json`) but instead what I want to do is restrict access to just be `api.example.com/vi/posts.json`.