mirror of
				https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
				synced 2025-10-30 17:45:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			492 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			492 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package controller
 | |
| 
 | |
| import (
 | |
| 	"net/http"
 | |
| 
 | |
| 	"github.com/Theodor-Springmann-Stiftung/kgpz_web/app"
 | |
| 	"github.com/Theodor-Springmann-Stiftung/kgpz_web/templating"
 | |
| )
 | |
| 
 | |
| // ControllerFunc is a function that get injected all dependencies and returns a http.HandlerFunc
 | |
| // A controller is resposible for executing all the neccessary middlewares and rendering the HTML
 | |
| type ControllerFunc func(kgpz *app.KGPZ, layouts *templating.LayoutRegistry, templates *templating.TemplateRegistry) http.HandlerFunc
 | 
