Does anyone know the best approach to create local-only path?
match 'quicksearch' => 'application#quicksearch'
I want the path '\quicksearch' to be exactly local (available from application itself only), any external requests must be ignored.
The first thing came into my mind is to create small request filter based on IP (?). Of course...
Filter can be route-level or middleware-level, but anywhere.. IP address as a base of distinction seems to me not so good.
Any opinions, folks?