moleculerjs / moleculer-web

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

typescript: add ApiRouteSchema, ApiSettingsSchema #259

Closed 0x0a0d closed 2 years ago

0x0a0d commented 3 years ago

create and export

api.service settings Screen Shot 2021-07-12 at 18 31 33

0x0a0d commented 2 years ago

@icebob https://github.com/moleculerjs/moleculer-web/blob/master/src/alias.js#L63 seem only accept 1 action

aliases: {
  'POST /login': [
    'user.mustExists', // will be overwritten
    'user.passwordCompare',
  ]
}
icebob commented 2 years ago

@icebob https://github.com/moleculerjs/moleculer-web/blob/master/src/alias.js#L63 seem only accept 1 action

Yeah, you are right, it has only one action.

icebob commented 2 years ago

@shawnmcknight could you review it again, plz?

0x0a0d commented 2 years ago

hope you can merge this

icebob commented 2 years ago

I would like to wait for an approval from @shawnmcknight

0x0a0d commented 2 years ago

Please merge before it outdated again

0x0a0d commented 2 years ago

@shawnmcknight @icebob