no deprecation on node16?

This commit is contained in:
2026-04-02 14:42:35 -05:00
parent f13035f8c5
commit e3f3d5a289
9 changed files with 25 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
import { Router } from 'express';
import { pool } from '../db/pool';
import { requireAuth } from '../auth/middleware';
import { pool } from '../db/pool.js';
import { requireAuth } from '../auth/middleware.js';
const router = Router();
router.use(requireAuth);

View File

@@ -1,6 +1,6 @@
import { Router } from 'express';
import { requireAuth } from '../auth/middleware';
import { pool } from '../db/pool';
import { requireAuth } from '../auth/middleware.js';
import { pool } from '../db/pool.js';
const router = Router();

View File

@@ -1,9 +1,12 @@
import { Router } from 'express';
import { pool } from '../db/pool';
import { requireAuth } from '../auth/middleware';
import { pool } from '../db/pool.js';
import { requireAuth } from '../auth/middleware.js';
import multer from 'multer';
import path from 'path';
import fs from 'fs';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const router = Router();
router.use(requireAuth);