Example API Gateway with Node. Setting up API Gateway between client and server can improve security. For complex applications, you can set up more than one API Gateway. For more details, please read this article.
-
/login Authenticate user using express-session.
-
/logout Log out user.
-
/search?q=x&format=json Forward to microservice - currently reach to duckduckgo. Pre-Authentication required to access the endpoint. The endpoint is defined in config.js file.
npm run dev
If you prefer to have more loggin, you can try:
npm run log