How to use multiple index pages in angularjs
<p>I want to access the localhost:3000/admin which is in my views ..
the index.html and the admin.html are my two different base files one is for users and the other is for admin dashboard respectively</p>

<p>in my app.routes.js I have this   </p>

<pre><code> angular.module('appRoutes', ['ngRoute'])
.config(function($routeProvider, $locationProvider) {

$routeProvider

    .when('/', {
        templateUrl: 'app/views/pages/home.html',
        controller: 'MainController',
        controllerAs: 'main'
    })
    .when('/admin', {
        templateUrl: 'app/views/admin.html',
    })
    .when('/logout', {
        templateUrl: 'app/views/pages/home.html'
    })
    .when('/login', {
        templateUrl: 'app/views/pages/login.html'
    })
    .when('/signup', {
        templateUrl: 'app/views/pages/signup.html'
    })
    .when('/admin/login' ,{
        templateUrl: 'app/views/pages/adminlogin.html'
    })

    $locationProvider.html5Mode(true);
   })
</code></pre>

<p>in server.js I have this</p>

<pre><code>app.get('*', function(req, res){
res.sendFile(__dirname + '/public/app/views/index.html');
});
</code></pre>

<p>there are two html index files: index.html, admin.html
i want to open admin.html when the url is: localhost:3000/admin</p>

<p>and index.html when the url is: localhost:3000</p>

<p><a href="http://i.stack.imgur.com/T4AHy.jpg" rel="noreferrer">screenshot of the app structure</a></p>

<p>in views/pages I have all the html pages required by index.html and admin.html using ng-view</p>