var mocky = require('mocky'); mocky.createServer([{ // simple GET route without request body to match url: '/profile', method: 'get', headers: {'Content-type': 'text/json'}, res: { status: 200, headers: {'Content-type': 'text/html', 'Access-Control-Allow-Origin': 'http://localhost:8080'}, body: JSON.stringify({'nickname': ''}) } }, { // simple GET route without request body to match url: '/profile