Skip to content

Global context with request argument #59

@g6123

Description

@g6123

When global context was first suggested in #4, functions that generate context could have a request argument. Like this :

server.views({
  context: function (request) {
    return {
      version: '1.4.5',
      date: Date.now(),
      id: request.id
    }
  }
});

But it is not actually implemented now, and I think that idea is quite essential in many cases of developments.

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions