Backend refactor and additions

This commit is contained in:
Jesse Malotaux 2025-04-11 16:49:18 +02:00
parent 052ce611f9
commit 5de99b32cd
4 changed files with 37 additions and 3 deletions

View file

@ -5,6 +5,7 @@ import (
"net/http"
"be/app"
"be/app/helper"
)
func main() {
@ -12,7 +13,7 @@ func main() {
apiInit(w, r)
})
log.Println(http.ListenAndServe(":6970", nil))
log.Println(http.ListenAndServe(":"+helper.EnvGet("MCRM__PORT"), nil))
}
func apiInit(w http.ResponseWriter, r *http.Request) {