mirror of
				https://codeberg.org/buzzcode2007/FCC-Project-URLShortener.git
				synced 2025-05-21 03:06:34 +00:00 
			
		
		
		
	Merge branch 'gomix' into feat/cleanup-glitch-assets-and-add-files
This commit is contained in:
		
						commit
						89f260d8f9
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		|  | @ -8,10 +8,7 @@ const port = process.env.PORT || 3000; | ||||||
| 
 | 
 | ||||||
| app.use(cors()); | app.use(cors()); | ||||||
| 
 | 
 | ||||||
| /* This project needs to parse POST bodies */ | app.use('/public', express.static(`${process.cwd()}/public`)); | ||||||
| // You should mount body-parser here
 |  | ||||||
| 
 |  | ||||||
| app.use('/public', express.static(process.cwd() + '/public')); |  | ||||||
| 
 | 
 | ||||||
| app.get('/', function(req, res) { | app.get('/', function(req, res) { | ||||||
|   res.sendFile(process.cwd() + '/views/index.html'); |   res.sendFile(process.cwd() + '/views/index.html'); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue