mirror of
				https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
				synced 2025-10-31 02:05:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			258 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			258 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package controllers
 | |
| 
 | |
| import (
 | |
| 	"strings"
 | |
| 
 | |
| 	"github.com/gofiber/fiber/v2"
 | |
| )
 | |
| 
 | |
| func Static(url string) fiber.Handler {
 | |
| 	if !strings.HasSuffix(url, "/") {
 | |
| 		url += "/"
 | |
| 	}
 | |
| 	return func(c *fiber.Ctx) error {
 | |
| 		return c.Render(url, fiber.Map{"Was": "Static"})
 | |
| 	}
 | |
| }
 | 
