fix:import from formhandler.js correctly

This commit is contained in:
Ryan Mwangi 2024-11-14 17:27:34 +03:00
parent 346431ef5d
commit 5e92b173d2
3 changed files with 12 additions and 6 deletions

11
package-lock.json generated
View file

@ -1,17 +1,18 @@
{
"name": "techlaunchpad",
"name": "progodyssey",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "techlaunchpad",
"name": "progodyssey",
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"dotenv": "^16.4.5",
"express": "^4.21.1",
"node-fetch": "^3.3.2"
"node-fetch": "^3.3.2",
"progodyssey": "file:"
}
},
"node_modules/accepts": {
@ -581,6 +582,10 @@
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz",
"integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w=="
},
"node_modules/progodyssey": {
"resolved": "",
"link": true
},
"node_modules/proxy-addr": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",

View file

@ -1,5 +1,5 @@
{
"name": "techlaunchpad",
"name": "progodyssey",
"version": "1.0.0",
"description": "progodyssey's landing page",
"main": "form-handler.js",
@ -13,6 +13,7 @@
"dependencies": {
"dotenv": "^16.4.5",
"express": "^4.21.1",
"node-fetch": "^3.3.2"
"node-fetch": "^3.3.2",
"progodyssey": "file:"
}
}

View file

@ -1,5 +1,5 @@
import express from 'express';
import { submitToListmonk } from './formHandler';
import { submitToListmonk } from './formHandler.js';
const router = express.Router();