Currently I'm pairing my expressjs APIs in a separate js file called index.js in the angular src directory. And running the same under 4050 port. Recently I noticed that my angular project already contain a file named 'server.ts' in project root directory with express package imported by default.
What is the purpose of this file? and can I deploy my expressjs APIs in this file so that I can invoke the same without running in a different port?