Hey everyone,I'm just unbelievably frustrated with trying to get these routes set up. I'm sure someone can point out something stupid I'm doing (or not doing).Here is my server.js file:http://ift.tt/2vWKyIU'm making a call to this file using redux and fetch. getAuth() is called at the very start of the app and it works just fine.Then I have the /cut route, which I've tried many many ways of accessing, using app.route, app.get, router from my routes file, which is here:http://ift.tt/2ww1d9E's interesting is that if I replaced the /cut call with /getAuth at the initiation of the app, /cut works just fine. The error I get for all routes except for the initial route is a 404 error.Can anyone tell me what I'm missing? Just FYI I know that my /cut function isn't doing anything, all I want is to see that log work for now and then I can go about the rest of this personal project :(
Submitted September 03, 2017 at 07:40PM by OffInBed
No comments:
Post a Comment