Added config package

This commit is contained in:
phoenix
2025-10-22 22:39:45 -04:00
parent c91c409eae
commit bbecbdb723
2 changed files with 6 additions and 2 deletions
+3 -2
View File
@@ -5,19 +5,20 @@ import "fmt"
import "log"
import "net/http"
import "git.kundeng.us/phoenix/textsender-api/internal/config"
type MessageItem struct {
Id int `json:"id"`
Message string `json:"message"`
}
const PORT = 8080
func main() {
fmt.Println("textsender-api")
http.HandleFunc("/api/v1/message/draft", draftMessageHandler)
log.Println("Starting server", PORT)
log.Println("Starting server", config.PORT)
log.Fatal(http.ListenAndServe(":8080", nil))
}
+3
View File
@@ -0,0 +1,3 @@
package config
const PORT = 8080