UNPKG
@domoinc/cra-template
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
The base template for Create React App.
@domoinc/cra-template
/
template
/
src
/
setupProxy.js
9 lines
(7 loc)
•
233 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
{
Proxy
} =
require
(
'@domoinc/ryuu-proxy'
);
const
manifest =
require
(
'../public/manifest.json'
);
const
config = { manifest };
const
proxy =
new
Proxy
(config);
module
.
exports
=
function
(
app
) { app.
use
(proxy.
express
()); };