- /login: look at customer’s credentials and make certain that the associate can be log in to help you the applying, or not.
- /users/create: perform a new user from the application.
- /users/recommend: get the recommended pages. Inside application, the recommended pages need certainly to pursue some criteria, for each and every representative, that is throughout the listing, must not have any coordinating request on latest affiliate. From that point, this new gender of every associate will be contrary to the present customer’s intercourse.
- /requests/create: do a complement needs between dos pages.
Brand new Log on API
The login API will get brand new user’s credentials and you can validate that guidance. Whether your user’s information is legitimate, the consumer is log on to the application and you can the other way around. To help make the log on API, you will want to create the “auth.js” document for the “routes” folder. The full source code of the log in API can be acquired here.
the method is Article together with demand cargo is to secure the user’s current email address and you may owner’s code. In the event your customer’s info is good, the fresh new customer’s sex and you may user’s CometChat uid is came back right back since an answer object. Following that, a warning content is came back if your owner’s back ground are maybe not appropriate. The normally consider the latest code snippet below to find out more. Read More…