From 294daaa6a6a309246b4a65bc9b60679b422b6013 Mon Sep 17 00:00:00 2001 From: xfarrow Date: Thu, 28 Sep 2023 10:01:17 +0200 Subject: [PATCH] Add some comments --- backend/api.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/api.js b/backend/api.js index a172f39..e66c2bd 100644 --- a/backend/api.js +++ b/backend/api.js @@ -3,11 +3,16 @@ ** licensed under GPLv3 */ +// require() always returns a function const express = require('express'); const bcrypt = require('bcrypt'); const { Pool } = require('pg'); const crypto = require('crypto'); +// We can do express() because the express +// module exports a function. Exporting a function +// means making a JavaScript function defined in one +// module available for use in another module. const app = express(); const port = 3000;