I want to host a static page in loopback. I have added HTML in client dir and removed the default path in server/boot/root.js
But, I have to follow some rules about routes so that I replaced '/api/' to '/' in config.json's restApiRoot. Now I want to host this static HTML page on '/' route. But It gives this error
{"success":false,"message":"There is no method to handle GET /"}
Also, I tried to set a different path for static page in middleware.json like this,
"files": {
"loopback#static": {
"paths": [
"/admin/"
],
"params": "$!../client"
}
},
Still, this is also not working. PS: I have added a boot script for following our code of conduct for the response, that's why it's giving this type of response.