I started writing a project in Spring Boot and faced such a problem as writing endpoints for the user and administrator.What is the best way to do it?GET online-shop/products and check every time the client is an admin or a client.or make a separate endpoint for the adminGET online-shop/admin/products
I tried to start doing this, but I realize that the program will start to grow more and more and I need an alternative solution.