mirror of
				https://codeberg.org/buzzcode2007/FCC-Project-URLShortener.git
				synced 2025-05-21 03:06:34 +00:00 
			
		
		
		
	Merge pull request #6 from abhijeetps/gomix
Fixed Deprecation Warning of Mongoose - Error
This commit is contained in:
		
						commit
						fb1d7c2ced
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -10,7 +10,8 @@ const express = require('express'), | ||||||
| const port = process.env.PORT || 3000; | const port = process.env.PORT || 3000; | ||||||
| 
 | 
 | ||||||
| /** this project needs a db !! **/  | /** this project needs a db !! **/  | ||||||
| // mongoose.connect(process.env.DB_URI);
 | mongoose.connect(process.env.MONGOLAB_URI, { useMongoClient: true }); | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| app.use(cors()); | app.use(cors()); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue