Cleaned up some of the webhooks stuff

This commit is contained in:
2024-08-19 22:19:57 -06:00
parent 96dff182cd
commit 43d29792e6
7 changed files with 23 additions and 213 deletions

View File

@ -7,7 +7,6 @@ import (
"net/http"
"atri.dad/api"
"atri.dad/api/webhooks"
"atri.dad/lib"
"atri.dad/pages"
@ -55,7 +54,6 @@ func main() {
// API Routes:
apiGroup := e.Group("/api")
apiGroup.GET("/ping", api.Ping)
apiGroup.GET("/authed/ping", api.Authed)
apiGroup.POST("/pay", api.Pay)
apiGroup.GET("/rss", api.RSSFeedHandler)
apiGroup.GET("/post/copy", api.PostCopy)
@ -70,10 +68,6 @@ func main() {
apiGroup.POST("/tools/resize", api.ResizeHandler)
// Webhook Routes:
webhookGroup := e.Group("/webhook")
webhookGroup.POST("/clerk", webhooks.ClerkWebhookHandler)
// Parse command-line arguments for IP and port
ip := flag.String("ip", "", "IP address to bind the server to")
port := flag.String("port", "3000", "Port to bind the server to")