Fix nucleus API access
diff --git a/todo/rolemenu/index.js b/todo/rolemenu/index.js
index ca7e493..b233a45 100644
--- a/todo/rolemenu/index.js
+++ b/todo/rolemenu/index.js
@@ -107,7 +107,7 @@
}
let code;
try {
- code = (await Axios.get(`http://${process.env.NUCLEUS_CALLBACK}/rolemenu/${ctx.query.code}`)).data;
+ code = (await Axios.get(`${process.env.NUCLEUS_CALLBACK}rolemenu/${ctx.query.code}`)).data;
} catch (e) {
return {
redirect: {
@@ -128,4 +128,4 @@
headers: headers
}
}
-}
\ No newline at end of file
+}