I'm trying to make a simple Ajax call in my app on Openshift. This is my ajax call which is triggered by pressing a button:

```
$.ajax({
   url: 'http://my-site-name.rhcloud.com/asciimo',
   method: 'POST',
   data: {attr:"value"}
});

```

And this is node in my server.js file:

```
self.createRoutes = function() {
    self.routes['/asciimo'] = function(req, res) { 
         res.send('done');
    };
};

```

Everything works when I go to my-site-name.rhcloud.com/asciimo, but if I click a button (to get there) I get:

```
POST http://my-site-name.rhcloud.com/asciimo 404 (Not Found)

```

even though the link clearly works on it's own.