Refactor project structure: modularized code into pkg and cmd directories, added unit tests, improved CI/CD pipeline, and enhanced documentation.

This commit is contained in:
2026-02-23 17:17:01 +01:00
parent 2077d4132b
commit 9432bf6758
9 changed files with 260 additions and 25 deletions

0
cmd/diunwebhook/.keep Normal file
View File

17
cmd/diunwebhook/main.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
"log"
"net/http"
diun "awesomeProject/pkg/diunwebhook"
)
func main() {
http.HandleFunc("/webhook", diun.WebhookHandler)
http.HandleFunc("/api/updates", diun.UpdatesHandler)
http.Handle("/", http.FileServer(http.Dir("./static")))
log.Println("Listening on :8080")
log.Fatal(http.ListenAndServe(":8080", nil))
}