title: How to setup and access internal services in hooks using FeathersJs
body: <p>I want to use internally defined services in hooks added to public REST endpoints, is this possible?</p>
  
  <p>By internally defined I'm referring to using the <strong>disallow</strong> hook from feathers-common-hooks.</p>
  
  <blockquote>
    <p>app.service('/api/internal/helper').hooks( { before: { all: disallow('rest') } } )</p>
  </blockquote>
  
  <p>The hook looks at the <code>provider</code> in the <code>context</code> object, if it matches what I've disabled. I.e if <strong>disallow('rest')</strong> is used then it disables the service from being accessed from REST.</p>
  
  <p>The problem is I want to use this internal <code>helper</code> service in a hook that is attached to a public service, but haven't found a way to do so. When the internal service is called the <code>provider</code> is still <strong>rest</strong> and the call is blocked.</p>