MCPcopy Index your code
hub / github.com/upstash/jstack / constructor

Method constructor

packages/jstack/src/server/router.ts:141–157  ·  view source on GitHub ↗
(procedures: T = {} as T)

Source from the content-addressed store, hash-verified

139 }
140
141 constructor(procedures: T = {} as T) {
142 super()
143
144 this._metadata = {
145 subRouters: {},
146 config: {},
147 procedures: {},
148 registeredPaths: [],
149 }
150
151 this.onError = (handler: ErrorHandler<any>) => {
152 this._errorHandler = handler
153 return this
154 }
155
156 this.setupRoutes(procedures)
157 }
158
159 registerSubrouterMiddleware() {
160 this.use(async (c, next) => {

Callers

nothing calls this directly

Calls 1

setupRoutesMethod · 0.95

Tested by

no test coverage detected