Server serves .well-known from local folder.

This commit is contained in:
2020-07-20 11:06:25 +02:00
parent 2b7bbf4341
commit fdae74bdfa
2 changed files with 3 additions and 0 deletions

View File

@@ -26,7 +26,10 @@ router.post('/variation/:id', variationsController.addNewVariationToProduct);
app.use("/public", express.static(path.join(__dirname, "public")));
app.use("/dist", express.static(path.join(__dirname, "/../public/dist")));
app.use('/.well-known', express.static(path.join(__dirname, "/../frontend/assets/well-known")));
app.use('/api', router);
app.use('/', (req, res) => res.sendFile(path.join(__dirname + "/../public/index.html")));
console.log(`Planetposen backend running on port: ${PORT}`)