Have an angular application:
This is part of my index.html page:
<!DOCTYPE html>
<html lang="en" ng-app="ReApp">
<head>
<meta charset="UTF-8">
<title>REApp</title>
<link rel="stylesheet" href="./lib/bootstrap/dist/css/bootstrap.min.css">
<script src="./lib/angular/angular.min.js"></script>
</head>
<body></body>
</html>
This is part of my server.js(start point):
var express = require('express');
var app = express();
app.use(express.static(__dirname + '/public'));
app.use('/api', api);
app.get('*', function(req, res){
res.sendFile(__dirname + '/public/app/views/index.html');
});
Problem is: when i have one route (localhost:3000/first) everything working. When i have route something like that: localhost:3000/first/second, i have an error "Resource interpreted as Stylesheet but transferred with MIME type text/html". In the terminal i have get request - first/second/lib/angular/angular.min.js. Of course i don't have that link. May who knows how to set a start page for this links in undex.html?