all good
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Successful in 1m32s
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Successful in 1m32s
This commit is contained in:
@@ -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'] }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user