title: Security for an AngularJs + ServiceStack App
body: <p>I have an application that have four modules in the front end, I'm trying to use as much as possible AngularJs in the front end I'm using an empty website asp.net project to host all the files and the REST serviceStack, my project have kind of the following structure:</p>
  
  <pre><code>~/ (web.config, global.asax and all the out of the box structure for an asp.net website)
  - App &lt;-  AngularJs 
      - Users  &lt;-  js controllers and views (static html files)
      - Companies
      - BackEnd
      - Public
      Index.html
      IndexCtrl.js
      App.js
  - Content
  - Js
  </code></pre>
  
  <p>I use angularjs service calls and the backend I'm using REST with servicestack.</p>
  
  <p>the question is how can I restrict the access only to authenticated users to those static html files? let's say the ones that are inside inside Companies, Backend and users for example</p>