Add Gitea CI/CD workflow and update compose to use registry image
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user