MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / is_path_keyword

Function is_path_keyword

src/pipeline/pass_parallel.c:2208–2218  ·  view source on GitHub ↗

Scan call args for a URL-like route path and handler reference. */

Source from the content-addressed store, hash-verified

2206
2207/* Scan call args for a URL-like route path and handler reference. */
2208static bool is_path_keyword(const char *keyword) {
2209 static const char *path_keywords[] = {"prefix", "path", "route", "pattern",
2210 "url", "endpoint", "rule", "mount_path",
2211 "route_path", "url_path", NULL};
2212 for (const char **kw = path_keywords; *kw; kw++) {
2213 if (strcmp(keyword, *kw) == 0) {
2214 return true;
2215 }
2216 }
2217 return false;
2218}
2219
2220/* A route path is one line that opens with a slash. A block or line comment
2221 * opens with a slash too, and an argument list that starts with one used to

Callers 1

find_route_path_in_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected