The middleware is always used as first.
//MIDDLEWAREapp.use(bodyParser.json());app.use(cors()); app.use(cookieParser());
before the routes.
//MY ROUTESapp.use("/api", authRoutes);
The middleware is always used as first.
//MIDDLEWAREapp.use(bodyParser.json());app.use(cors()); app.use(cookieParser());
before the routes.
//MY ROUTESapp.use("/api", authRoutes);