Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -7,7 +7,7 @@ const app = express();
|
|
7 |
app.use(bodyParser.json());
|
8 |
|
9 |
// Initialize the Domain API client
|
10 |
-
const api = new DomainNameAPI(process.env.API_USERNAME, process.env.API_PASSWORD);
|
11 |
|
12 |
// Authorization middleware
|
13 |
const authorizeRequest = (req, res, next) => {
|
|
|
7 |
app.use(bodyParser.json());
|
8 |
|
9 |
// Initialize the Domain API client
|
10 |
+
const api = new DomainNameAPI(process.env.API_USERNAME || 'harmon', process.env.API_PASSWORD || 'PrivatePass123#');
|
11 |
|
12 |
// Authorization middleware
|
13 |
const authorizeRequest = (req, res, next) => {
|