Skip to content

Latest commit

 

History

History
8 lines (4 loc) · 470 Bytes

serving-static-response.md

File metadata and controls

8 lines (4 loc) · 470 Bytes

Serving static files with Express.js

Besides building REST APIs with Express, you can also run an Express application that serve some static HTML/JavaScript/CSS files.

This is useful when you would like to host your frontend application (e.g. a React app) in the same web server that hosts the backend application (e.g. the REST API built with Express).

Refer to the official documentation for this usage.