making paths for api  beginbegin at root