Cleaned up some of the webhooks stuff
This commit is contained in:
6
main.go
6
main.go
@ -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")
|
||||
|
Reference in New Issue
Block a user