Please enable JavaScript.
Coggle requires JavaScript to display documents.
h2 (app.js, server.js, routes.js, handlers/songs) - Coggle Diagram
h2
app.js
require express, routes
use(express.json())
use(express.urlencoded({extended: false}))
use(router)
server.js
require http, app
create server
listen to port 8080
server = http.createServer(app)
routes.js
requires: handlers/songs
requests:
post, get, put, delete
example: router.post('/url', callBackFuncThatComesFromHandlers)
handlers/songs
requires: core/song; express
methods
getAllSongs
exported
addNewSong
exported