mirror of
				https://github.com/filebrowser/filebrowser.git
				synced 2025-10-31 17:23:09 +00:00 
			
		
		
		
	add todos
This commit is contained in:
		
							parent
							
								
									f5b4b43248
								
							
						
					
					
						commit
						049bc2fe0f
					
				
							
								
								
									
										10
									
								
								hugo.go
									
									
									
									
									
								
							
							
								
								
								
								
								
								
							
						
						
									
										10
									
								
								hugo.go
									
									
									
									
									
								
							| @ -67,7 +67,7 @@ func (h Hugo) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) { | ||||
| 		} | ||||
| 
 | ||||
| 		if r.Method == http.MethodPost && r.Header.Get("archetype") != "" { | ||||
| 
 | ||||
| 			// TODO: this | ||||
| 			return 0, nil | ||||
| 		} | ||||
| 
 | ||||
| @ -83,7 +83,7 @@ func (h Hugo) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) { | ||||
| 			} | ||||
| 
 | ||||
| 			if r.Header.Get("Schedule") != "" { | ||||
| 
 | ||||
| 				code, err = Schedule(w, r, h.Config) | ||||
| 			} | ||||
| 
 | ||||
| 			return code, err | ||||
| @ -115,6 +115,12 @@ func RunHugo(c *Config, force bool) { | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| // Schedule schedules a post to be published later | ||||
| func Schedule(w http.ResponseWriter, r *http.Request, c *Config) (int, error) { | ||||
| 	// TODO: this | ||||
| 	return http.StatusOK, nil | ||||
| } | ||||
| 
 | ||||
| // serveAssets provides the needed assets for the front-end | ||||
| func serveAssets(w http.ResponseWriter, r *http.Request, c *Config) (int, error) { | ||||
| 	// gets the filename to be used with Assets function | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Henrique Dias
						Henrique Dias