Hello, I've been working on setting up my user routes using Sequelize for MySQL. However, when I try to test my requests by sending them to http://localhost:3001 via Postman, I'm receiving a 404 (Not Found) error for http://localhost:3001/users/signup. Although all my user routes seem to be correct and my Nodemon server is running without any issues. Interestingly, if I navigate to http://localhost:3001/users, I can see the test requests being processed.
Below are snippets from my server.js file:
const http = require("http");
const app = require("./app");
// Rest of the server.js content goes here...
The contents of my app.js file:
const express = require("express");
// Additional code from app.js goes here...
Next, let's take a look at my user route:
const express = require("express");
// Further details about the user route go here...
Now, moving on to my models:
const { Model } = require("sequelize");
// Additional model information can be found within this section...
Lastly, let's review the users controller:
const bcrypt = require("bcrypt");
const jwt = require("jsonwebtoken");
// The remaining content of the users controller is listed below...