I'm having problems accessing the mikrotik router REST API on v7.1 stable.
I wrote a simple nodejs program to fetch data from the router:
```
import axios from "axios";
const grabRobotName = () => {
let user = "admin";
let password = "";
let encodedCredentials = Buffer.from(`${user}:${password}`).toString("base64");
console.log(`${encodedCredentials}`);
var config = {
method: 'get',
url: 'http://192.168.1.254/rest',
headers: {
'Authorization': `Basic ${encodedCredentials}`
}
};
axios(config).then(result => console.log(result)).catch(ex => console.log(ex.message));
}
grabRobotName();
```
If I use the https route on port 8443, I get
```
authority and subject key identifier mismatch
```
If I run on http on port 80, I get a 404 not found.
I would rather use the http connection to avoid the complications of getting a valid ssl certificate. There is no domain name for the ip endpoint, so it's pretty hard to get a valid signed certificate for that.
How can I access the rest API on http? Why am I getting the 404?