remove first slash of path of endpoint