我有一个应用程序在前端有四个模块,我正在尝试尽可能多地使用前端的AngularJs我正在使用一个空的网站asp.net项目来托管所有文件和REST serviceStack,我的项目有以下几种结构:
~/ (web.config, global.asax and all the out of the box structure for an asp.net website)
- App <- AngularJs
- Users <- js controllers and views (static html files)
- Companies
- BackEnd
- Public
Index.html
IndexCtrl.js
App.js
- Content
- Js
Run Code Online (Sandbox Code Playgroud)
我使用angularjs服务调用和后端我使用REST与servicestack.
问题是如何限制只有经过身份验证的用户访问那些静态html文件?比如公司,后端和用户内部的那些