add: 404 handler for angular
This commit is contained in:
		
							parent
							
								
									3a2677cbe8
								
							
						
					
					
						commit
						9b44482f7c
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								drogon
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								drogon
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
Subproject commit 195bc5299e73a5f93c65cd336c49a9a013b934bd
 | 
			
		||||
Subproject commit 543d1a8c8062b3873ef89c64ffd7394c6dd7c7e8
 | 
			
		||||
							
								
								
									
										1
									
								
								main.cc
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								main.cc
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -50,6 +50,7 @@ main()
 | 
			
		|||
    drogon::app().loadConfigFile("config.json");
 | 
			
		||||
 | 
			
		||||
    drogon::app().registerPostHandlingAdvice(add_cors_headers);
 | 
			
		||||
    drogon::app().instance().setCustom404Page(drogon::HttpResponse::newFileResponse("./index.html", "", drogon::CT_TEXT_HTML));
 | 
			
		||||
 | 
			
		||||
    //drogon::app().getLoop()->runEvery(1, &test);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue