mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2025-10-30 19:42:47 +00:00 
			
		
		
		
	Unable to use some response function #34
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	
	No description provided.
		
		Delete Branch "%!s()"
	 
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
 
			
I'm trying to migrate my app to serve by greenlock-express.js recently, but I get some errors that never happened in original express app:
res.status(403)Error:
TypeError: res.status is not a functionResolved by updating the code to
res.statusCode = 403.res.json({ ... })Error:
TypeError: res.json is not a functionResolved by updating the code to:
Here's my greenlock-express app:
Did I missed anything?
It's kind of inconvenient that I can't use the functions above and it makes the code longer.
you still need to require
expressand create an app.greenlock only handles the security-related bits, nothing else.