mirror of
https://github.com/ananthakumaran/paisa.git
synced 2024-09-13 00:49:28 -04:00
18 lines
336 B
Go
18 lines
336 B
Go
|
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")
|
||
|
}
|