Create rest.js in auth