This commit is contained in:
		
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							@@ -13,7 +13,7 @@ func main() {
 | 
			
		||||
	stop := make(chan os.Signal, 1)
 | 
			
		||||
	signal.Notify(stop, os.Interrupt)
 | 
			
		||||
	go func() {
 | 
			
		||||
		http.Handle("/public/", http.StripPrefix("/public/", http.FileServer(http.Dir("public"))))
 | 
			
		||||
		http.Handle("/public/", http.StripPrefix("/", http.FileServer(http.Dir("public"))))
 | 
			
		||||
		log.Fatal(http.ListenAndServe(":8080", nil))
 | 
			
		||||
	}()
 | 
			
		||||
	log.Println("started public fileserver on 8080")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user