I can not understand how to interact with the server.
http: // localhost / - display the index.html layout
http: // localhost / men - I get JSON for this request
But if I go directly to the link http: // localhost / men , then index.html is not given and instead of layout I have data.
I can not understand how I simultaneously receive and layout and data