MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / configFor

Function configFor

lib/storage/base.ts:100–108  ·  view source on GitHub ↗
(req: express.Request)

Source from the content-addressed store, hash-verified

98}
99
100function configFor(req: express.Request) {
101 if (req.body.config) {
102 return req.body.config;
103 }
104 if (req.body.sessions) {
105 return req.body;
106 }
107 return null;
108}
109
110export abstract class StorageBase {
111 constructor(

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected