Add Gitea CI/CD workflow and update compose to use registry image
Some checks failed
build-and-deploy / build (push) Successful in 20s
build-and-deploy / deploy (push) Failing after 25s

This commit is contained in:
2025-09-06 17:02:40 -06:00
parent 8fe57cfa47
commit 089c4124f6
3 changed files with 63 additions and 1 deletions

View File

@@ -39,6 +39,15 @@ app.get('/api/amigos', async (req, res) => {
}
});
app.get('/api/vistiantes_hoy', async (req, res) => {
try {
const amigos = await amigosCollection.find({}).toArray();
res.json(amigos);
} catch (error) {
res.status(500).json({ error: error.message });
}
});
// Add new amigo
app.post('/api/amigos', async (req, res) => {
try {