randydev commited on
Commit
f87e5aa
·
verified ·
1 Parent(s): 81e7811

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -7
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('dotenv').config();
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');