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

Function route_is_protected

src/ui/http_server.c:3086–3088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3084}
3085
3086static bool route_is_protected(const char *path) {
3087 return strcmp(path, "/api") == 0 || strncmp(path, "/api/", 5) == 0 || strcmp(path, "/rpc") == 0;
3088}
3089
3090static bool content_type_is_json(const char *content_type) {
3091 static const char json_type[] = "application/json";

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected