We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e246ddc commit 023f3faCopy full SHA for 023f3fa
src/pages/api/config.js
@@ -0,0 +1,16 @@
1
+// @flow
2
+
3
+import Config from '../../config';
4
5
+export default (req, res) => {
6
+ res.setHeader('access-control-allow-origin', '*');
7
+ res.json({
8
+ version: '1.0.0',
9
+ oneGraphAppId: Config.appId,
10
+ repoName: Config.repoName,
11
+ repoOwner: Config.repoOwner,
12
+ codeTheme: Config.codeTheme,
13
+ title: Config.title,
14
+ description: Config.description,
15
+ });
16
+};
0 commit comments