paisa/internal/server/server.go

18 lines
336 B
Go
Raw Normal View History

2022-03-30 12:11:44 -04:00
package server
import (
"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
)
func Listen() {
gin.SetMode(gin.ReleaseMode)
router := gin.Default()
router.SetTrustedProxies(nil)
router.Static("/static", "web/static")
router.StaticFile("/", "web/static/index.html")
log.Info("Listening on 8500")
router.Run(":8500")
}