Debian Codegraph @

lib/route-handlers/object.js

raw
1 /**
2 * @hide
3 */
4 export default class ObjectRouteHandler {
5 constructor(schema, serializerOrRegistry, object) {
6 this.schema = schema;
7 this.serializerOrRegistry = serializerOrRegistry;
8 this.object = object;
9 }
10
11 handle(/* request */) {
12 return this.object;
13 }
14 }