mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-10-31 09:53:27 -04:00 
			
		
		
		
	Begin move away from using http.ServeMux
This commit is contained in:
		
							
								
								
									
										3
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								main.go
									
									
									
									
									
								
							| @@ -79,7 +79,8 @@ func main() { | ||||
| 	} | ||||
|  | ||||
| 	// Get ServeMux for API and add our own handlers for files | ||||
| 	servemux := handlers.GetHandler(dbmap) | ||||
| 	servemux := http.NewServeMux() | ||||
| 	servemux.Handle("/v1/", &handlers.APIHandler{DB: dbmap}) | ||||
| 	servemux.HandleFunc("/", FileHandlerFunc(rootHandler, cfg.MoneyGo.Basedir)) | ||||
| 	servemux.HandleFunc("/static/", FileHandlerFunc(staticHandler, cfg.MoneyGo.Basedir)) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user