this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Handle unknown routes

futur 074e63ab 33b4d456

+7
+7
src/LabelerServer.ts
··· 104 104 { websocket: true }, 105 105 this.subscribeLabelsHandler, 106 106 ); 107 + this.app.get("/xrpc/*", this.unknownMethodHandler); 107 108 }); 108 109 } 109 110 ··· 418 419 } 419 420 } 420 421 }; 422 + 423 + /** 424 + * Catch-all handler for unknown XRPC methods. 425 + */ 426 + unknownMethodHandler: GetMethod = async (_req, res) => 427 + res.send({ error: "MethodNotImplemented", message: "Method Not Implemented" }); 421 428 422 429 /** 423 430 * Add a WebSocket connection to the list of subscribers for a given lexicon.