This commit is contained in:
14
Backend/endpoints/auto-feiertage.go
Normal file
14
Backend/endpoints/auto-feiertage.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package endpoints
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/wlbr/feiertage"
|
||||
)
|
||||
|
||||
func FeiertagsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
feiertage := feiertage.Sachsen(time.Now().Year(), true)
|
||||
slog.Info("Hier sind die Feiertage", "Feiertage", feiertage)
|
||||
}
|
||||
Reference in New Issue
Block a user