all good
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Successful in 1m32s

This commit is contained in:
2026-06-18 16:32:01 +01:00
parent 48c768ef00
commit 211d03189a
2 changed files with 1 additions and 17 deletions
-16
View File
@@ -15,22 +15,6 @@ app.use(express.urlencoded({ extended: true }));
app.get('/', (req, res) => {
res.send(`
<html>
<body>
<h1>ISTEC - ERSI</h1>
<a href="/api/search?q=teste">Pesquisar</a>
</body>
</html>
`);
});
app.get('/api/search', (req, res) => {
const termo = req.query.q;
res.send(`<html><body><h1>Resultados para: ${termo}</h1></body></html>`);
});
// Serve a pasta frontend
app.use(express.static(path.join(__dirname, '../frontend'), { extensions: ['html'] }));