MCPcopy Create free account
hub / github.com/DIYgod/RSSHub / getSubPath

Function getSubPath

lib/utils/common-utils.ts:33–36  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

31};
32
33const getSubPath = (ctx) => {
34 const subPath = ctx.req.path.replace(/\/[^/]*/, '') || '/';
35 return subPath;
36};
37
38const getLocalhostAddress = () => {
39 const interfaces = os.networkInterfaces();

Callers 15

handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected