X
X
xFreake2017-07-25 00:38:35
Node.js
xFreake, 2017-07-25 00:38:35

Why isn't Ajax coming to a third party Node.js file?

In general, guys, the point is that there is an ajax request in

/controllers/controllers/authreg.js

But nothing comes there, only comes to the app.js root

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Larisa Moroz, 2017-07-25
@larisamoroz

Apparently, it is app.js that works as the server of your application,
it is it that catches all requests, and it is in it that there should be a logic for distributing requests, in the form of controllers. All other scripts (models, controllers, etc...) are plug-ins, they do not run directly on the server (unless configured separately). /controllers/controllers/*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question