added routes for website api
fixed merge changes with main.js