MCPcopy Index your code
hub / github.com/BrasilAPI/BrasilAPI / app

Function app

app.js:26–46  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

24};
25
26const app = (options = {}) => {
27 const corsOptions = options.cors || {};
28 const cacheOptions = options.cache || cacheDefaultConfiguration;
29
30 const configurations = {
31 cors: {
32 ...corsDefaultConfiguration,
33 ...corsOptions,
34 },
35 cache: cacheOptions,
36 };
37
38 return nc({
39 onError,
40 onNoMatch,
41 })
42 .use(cors(configurations.cors))
43 .use(firewall)
44 .use(logger)
45 .use(cache(configurations.cache));
46};
47
48export default app;

Callers 15

[isbn].jsFile · 0.85
[cep].jsFile · 0.85
[cep].jsFile · 0.85
[vehicleType].jsFile · 0.85
index.jsFile · 0.85
[makerCode].jsFile · 0.85
index.jsFile · 0.85
[fipeCode].jsFile · 0.85
[code].jsFile · 0.85
index.jsFile · 0.85
index.jsFile · 0.85
[cnpj].jsFile · 0.85

Calls 1

cacheFunction · 0.85

Tested by

no test coverage detected