mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 07:19:26 +00:00
Backend refactor and additions
This commit is contained in:
parent
052ce611f9
commit
5de99b32cd
4 changed files with 37 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue