mirror of
				https://codeberg.org/buzzcode2007/FCC-Project-URLShortener.git
				synced 2025-05-21 03:06:34 +00:00 
			
		
		
		
	Update server.js
This commit is contained in:
		
							parent
							
								
									13dd4b6376
								
							
						
					
					
						commit
						dca8dc92fd
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -12,7 +12,7 @@ var app = express(); | ||||||
| var port = process.env.PORT || 3000; | var port = process.env.PORT || 3000; | ||||||
| 
 | 
 | ||||||
| /** this project needs a db !! **/  | /** this project needs a db !! **/  | ||||||
| // mongoose.connect(process.env.MONGOLAB_URI);
 | mongoose.connect(process.env.MONGOLAB_URI, { useMongoClient: true }); | ||||||
| 
 | 
 | ||||||
| app.use(cors()); | app.use(cors()); | ||||||
| 
 | 
 | ||||||
|  | @ -34,4 +34,4 @@ app.get("/api/hello", function (req, res) { | ||||||
| 
 | 
 | ||||||
| app.listen(port, function () { | app.listen(port, function () { | ||||||
|   console.log('Node.js listening ...'); |   console.log('Node.js listening ...'); | ||||||
| }); | }); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue