79510349

Date: 2025-03-14 22:42:15
Score: 3.5
Natty:
Report link

You can try this ;

import { Router } from "express";
import { register } from "../controllers/auth.js";
export const authRouter = Router();

authRouter.post("/register", register);

I added ".js" to your controller import and i used export const instead export default expression. But if it doesn't work for you can i see your index.js file ?

Reasons:
  • Blacklisted phrase (2): can i see your
  • Whitelisted phrase (-1): try this
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Kerem Tutumlu