mirror of https://github.com/synctv-org/synctv
Opt: move init gin mod to bootstrap
parent
6af3409727
commit
3bedc6ed41
@ -1,11 +1,13 @@
|
|||||||
package cmd
|
package bootstrap
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/synctv-org/synctv/cmd/flags"
|
"github.com/synctv-org/synctv/cmd/flags"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitGinMode() error {
|
func InitGinMode(ctx context.Context) error {
|
||||||
if flags.Dev {
|
if flags.Dev {
|
||||||
gin.SetMode(gin.DebugMode)
|
gin.SetMode(gin.DebugMode)
|
||||||
} else {
|
} else {
|
Loading…
Reference in New Issue