Skip to content

Commit

Permalink
revert .env.example and fix domain problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-kintone committed Jun 7, 2024
1 parent b686e67 commit 02b8dd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
DOMAIN = "MY_DOMAIN" 例: https://sean.cybozu.com/ -> "sean"
APPID = "APP_ID" 例: https://sean.cybozu.com/k/2/ -> "2"
APITOKEN = "MY_API_TOKEN_WITH_GET_PERMISSIONS" -> "qffBneGNpxRzPBd4JqcEO6Iu23Tcu1MFRdjbJ0UK"
DOMAIN = "MY_DOMAIN"
APPID = "APP_ID"
APITOKEN = "MY_API_TOKEN_WITH_GET_PERMISSIONS"
2 changes: 1 addition & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const corsOptions = {
};

// Kintone's records endpoint
const multipleRecordsEndpoint = `https://${domain}.kintone.com/k/v1/records.json?app=${appID}`
const multipleRecordsEndpoint = `https://${domain}.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 02b8dd0

Please sign in to comment.