Skip to content

Commit

Permalink
setup: update main instance api url
Browse files Browse the repository at this point in the history
  • Loading branch information
wukko committed May 22, 2024
1 parent ba75b90 commit 6c7aa57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function setup() {
rl.question(q, r1 => {
switch (r1.toLowerCase()) {
case 'api':
console.log(Bright("\nCool! What's the domain this API instance will be running on? (localhost)\nExample: co.wuk.sh"));
console.log(Bright("\nCool! What's the domain this API instance will be running on? (localhost)\nExample: api.cobalt.tools"));

rl.question(q, apiURL => {
ob.API_URL = `http://localhost:9000/`;
Expand Down Expand Up @@ -83,13 +83,13 @@ function setup() {
if (webPort && (webURL === "localhost" || !webURL)) ob.WEB_URL = `http://localhost:${webPort}/`;

console.log(
Bright("\nOne last thing: what default API domain should be used? (co.wuk.sh)\nIf it's hosted locally, make sure to include the port:") + Cyan(" localhost:9000")
Bright("\nOne last thing: what default API domain should be used? (api.cobalt.tools)\nIf it's hosted locally, make sure to include the port:") + Cyan(" localhost:9000")
);

rl.question(q, apiURL => {
ob.API_URL = `https://${apiURL.toLowerCase()}/`;
if (apiURL.includes(':')) ob.API_URL = `http://${apiURL.toLowerCase()}/`;
if (!apiURL) ob.API_URL = "https://co.wuk.sh/";
if (!apiURL) ob.API_URL = "https://api.cobalt.tools/";
final()
})
});
Expand Down

0 comments on commit 6c7aa57

Please sign in to comment.