1const express = require('express')
2
3const app = express()
4
5app.get('/', (req, res, next) => {
6 res.json({
7 message: 'This is my JSON api'
8 });
9});
10
11app.listen(your-port-here, () => {
12 console.log(`listening on http://localhost:${the-port-goes-here}`)
13});
14
15/*
16WombleWoo7547 @ https://github.com/WombleWoo7547 https://replit.com/@WombleWoo7547
17*/