Custom end points

Hello,
I would like to create same new endpoints. How can i do it?
Regards,
Maciek