Open rjrodger opened 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
security: seneca-browser will help - leave it for later (we will namespace and mark the messages)
errors:
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