Update index.js
Browse files
index.js
CHANGED
@@ -2,13 +2,7 @@ const express = require('express')
|
|
2 |
const app = express()
|
3 |
const port = 7860
|
4 |
const axios = require('axios')
|
5 |
-
require('
|
6 |
-
|
7 |
-
const dbUri = process.env.DB_URI;
|
8 |
-
|
9 |
-
if (!dbUri) {
|
10 |
-
throw new Error("Missing DB_URI environment variable");
|
11 |
-
}
|
12 |
|
13 |
app.get('/', (req, res) => {
|
14 |
res.redirect('https://t.me/RendyProjects');
|
|
|
2 |
const app = express()
|
3 |
const port = 7860
|
4 |
const axios = require('axios')
|
5 |
+
const { connectToCollection } = require('./database');
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
app.get('/', (req, res) => {
|
8 |
res.redirect('https://t.me/RendyProjects');
|