Когда перехожу на какую нибудь страницу например в команды, то пишет Cannot GET /teams, что делать?
Код:
'use strict';
let express = require("express");
let app = express();
app.use('/public', express.static('public'));
let server = require("http").createServer(app);
let io = require("socket.io").listen(server);
server.listen(3000);
app.get("/", function(request, respons) {
respons.sendFile(__dirname + "/views/index.html");
});
app.get("/teams", function(request, respons) {
respons.sendFile(__dirname + "/views/teams.html");
});
app.get("/profile", function(request, respons) {
respons.sendFile(__dirname + "/views/profile.html");
});
app.get("/about", function(request, respons) {
respons.sendFile(__dirname + "/views/about.html");
});