-2
Hallo Ich erstelle eine Angular2 Mean Stack App. Ich glaube, dass der Anruf für die zweite Route nicht correctly.The Netzwerk Antwort genannt wird, ist HTML und nicht JSONMittelwert Winkel 2 Express: Route berechnen() gibt nur "/" Route zurück
import express = require('express');
import path = require('path');
import ContactRoutes = require('../routes/ContactRoutes');
import EstimateRoutes = require('../routes/EstimateRoutes');
var app = express();
class Routes {
get routes() {
app.use("/", new ContactRoutes().routes);
app.use("/estimates", new EstimateRoutes().routes);
return app;
}
}
export = Routes;
Die Routen in 'EstimateRoutes' enthalten wahrscheinlich bereits das Präfix. – poke