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

Function route_is_protected

src/ui/http_server.c:1697–1699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1695}
1696
1697static bool route_is_protected(const char *path) {
1698 return strcmp(path, "/api") == 0 || strncmp(path, "/api/", 5) == 0 || strcmp(path, "/rpc") == 0;
1699}
1700
1701static bool content_type_is_json(const char *content_type) {
1702 static const char json_type[] = "application/json";

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected