Closed noahD0zer closed 11 months ago
Share your backend route you're trying to hit, and the small section where they're registered in server.js
//required route is routes/charactercreate_routes.js
// require route files const userRoutes = require('./app/routes/user_routes') const characterCreateRoutes = require('./app/routes/charactercreate_routes')
// register route files app.use(userRoutes) app.use(characterCreateRoutes)
Alrighty, it's 1:1 time!
What stack are you using?
(ex: MERN(mongoose + react), DR(django + react), PEN, etc.)
mern
What's the problem you're trying to solve?
api fetch unsucessful
Post any code you think might be relevant (one fenced block per file)
If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?
CreateCharacter.jsx:82 GET http://localhost:8000/api/classes 404 (Not Found)
What is your best guess as to the source of the problem?
incorrect usage of fetch call?
What things have you already tried to solve the problem?
I have tried refactoring models and routes, making sure they are exported and refactoring fron end.
Paste a link to your repository here https://github.com/noahD0zer/BG3-Creator-Frontend