What does the endpoint.ex file do in phoenix elixir

I am new to elixir and phoenix and with the help of phoenix guides. At the beginning of the manual, they simply say http://puu.sh/klblD/e50082298d.png , but they did not explain what the endpoint is and what the tasks are. Can someone explain what he is doing?

+5
source share
1 answer

Don't take anything away from @Gazier, but I agree with @JoseValim; his answer should be the answer so that others who might find it can easily find it.

The endpoint is the boundary where all requests to your network start the application. It is also the interface that provides your application to the underlying web servers.

In general, an endpoint has three functions:

  • to provide a wrapper for starting and stopping the endpoint as part of the observation tree;

  • To determine the starting connector where requests are sent

  • to host the web configuration for your application.

The documentation is here .

+7
source

Source: https://habr.com/ru/post/1232087/


All Articles