Software,
Building a REST API with Express.js
Date Published

In this post, we’ll build a simple RESTful API using Express.js. We’ll create a server that handles basic CRUD operations for a todo list

Hero 2
const express = require('express');
const app = express();
app.use(express.json());
let zadaci = [];
app.get('/zadaci', (req, res) => res.json(zadaci));
app.post('/zadaci', (req, res) => {
zadaci.push(req.body);
res.status(201).send('Zadatak dodat');
});
app.listen(3000, () => console.log('Server pokrenut na portu 3000'));
Software
Recursion is one of those topics that seems intimidating at first, but once you "get it", it's oddly satisfying.