0 votes
101 views
in MEAN by (0 points)
closed by
Scenario:

Annie is a full-stack developer working on the MEAN stack set of technologies. She is current working on a knowledge sharing web application where users can post articles, read and comment on articles posted by others.

In the current sprint, she is developing a REST API using express. The application has to handie incoming requests from Angular client for performing CRUD operations on the mongoDB database.

Given the requirements, help Annie overcome the challenges she is facing

Question

For one of the routes "igetauthors, the response must be a json file named "authors json" Which of the below functions should Annie use to serve the file?
closed

1 Answer

0 votes
by (0 points)
 
Best answer
res.sendFile()

Related questions

0 votes
1 answer 138 views
0 votes
1 answer 117 views
0 votes
1 answer 114 views

2.8k questions

2.8k answers

0 comments

76 users

Welcome to MCQ Village Q&A, where you can ask questions and receive answers from other members of the community.
...