moleculerjs / moleculer-web

:earth_africa: Official API Gateway service for Moleculer framework
http://moleculer.services/docs/moleculer-web.html
MIT License
291 stars 118 forks source link

Documentation has some problems for auto-aliases #242

Closed unitythemaker closed 3 years ago

unitythemaker commented 3 years ago

Hello, I noticed that there is a problem in the docs. Here In this section:

whitelist: [
                    "posts.*",
                    "test.*"
                ],

That should be v2.posts.* instead of it. I tried it on my local then it didn't create the aliases. So I saw this issue and fixed it: #239 But if you can fix it, it will be awesome. I don't know where the docs is (which repo and which path). If you can let me know, I can create a PR too. Thanks.

unitythemaker commented 3 years ago

Also I'd like to add that it doesn't create alias for /api/v2/... it creates as /api/service_name You can see this screenshot: flameshot_imgur flameshot_imgur

unitythemaker commented 3 years ago

I also figured that when I comment the settings: rest: it creates the alias for /api/v2/... and that solved my problem. However I want you to fix it in the docs. flameshot_imgur flameshot_imgur

AndreMaz commented 3 years ago

I don't know where the docs is (which repo and which path). If you can let me know, I can create a PR too.

Hi @unitythemaker the docs for API gateway are located here: https://github.com/moleculerjs/site/blob/master/source/docs/0.14/moleculer-web.md

You can clone the site repo and update the docs. More info here

unitythemaker commented 3 years ago

Thanks, I created a PR: moleculerjs/site#142