Skip to content

Commit

Permalink
change back to subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-kintone committed Jun 7, 2024
1 parent 02b8dd0 commit 25655ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
DOMAIN = "MY_DOMAIN"
SUBDOMAIN = "MY_SUBDOMAIN"
APPID = "APP_ID"
APITOKEN = "MY_API_TOKEN_WITH_GET_PERMISSIONS"
4 changes: 2 additions & 2 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dotenv.config({ path: '../.env' })
ViteExpress.config({ mode: "production" })

// Get Kintone credentials from a .env file
const domain = process.env.DOMAIN;
const subdomain = process.env.SUBDOMAIN;
const appID = process.env.APPID;
const apiToken = process.env.APITOKEN;

Expand All @@ -24,7 +24,7 @@ const corsOptions = {
};

// Kintone's records endpoint
const multipleRecordsEndpoint = `https://${domain}.cybozu.com/k/v1/records.json?app=${appID}`
const multipleRecordsEndpoint = `https://${subdomain}.cybozu.com/k/v1/records.json?app=${appID}`

// GET data from our Kintone database
app.get('/getData', cors(corsOptions), async (req, res) => {
Expand Down

0 comments on commit 25655ba

Please sign in to comment.