(schema)
| 616 | |
| 617 | class="cm">// wrapper that we expose to the user for schemas handling |
| 618 | function addSchema (schema) { |
| 619 | throwIfAlreadyStarted(class="st">'Cannot call "addSchema"!') |
| 620 | this[kSchemaController].add(schema) |
| 621 | this[kChildren].forEach(child => child.addSchema(schema)) |
| 622 | return this |
| 623 | } |
| 624 | |
| 625 | class="cm">// If the router does not match any route, every request will land here |
| 626 | class="cm">// req and res are Node.js core objects |
nothing calls this directly
no test coverage detected