nodezoo / monorepo

Nodezoo system monorepo.
MIT License
2 stars 2 forks source link

merge all web routes calling seneca into a limited number of endpoints #7

Open rjrodger opened 3 years ago

rjrodger commented 3 years ago

say /api/msg, which accepts a POST of a JSON object - the seneca message this will be compatible with seneca-browser (which we will need to use) authentication and authorization to be handled by seneca plugins exposing express middleware

rjrodger commented 3 years ago

Actually two: /api/public - public messages - e.g search /api/account - private - requires login

use express end points for these

accept whatever JSON is sent, call seneca.act, send back response

rjrodger commented 3 years ago

security: seneca-browser will help - leave it for later (we will namespace and mark the messages)

rjrodger commented 3 years ago

errors: