restruct server routes