Skip to content

Instantly share code, notes, and snippets.

const express=require('express')
const app=express()
let todo=[]
app.use(express.json())
app.use(express.urlencoded({extended: true}))
app.get('/todo',(req,res) =>
{
if(todo.length==0)