Added routes and moved them from web.js
Fixed authentication after moving routes