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 (
|
||||
"context"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/synctv-org/synctv/cmd/flags"
|
||||
)
|
||||
|
||||
func InitGinMode() error {
|
||||
func InitGinMode(ctx context.Context) error {
|
||||
if flags.Dev {
|
||||
gin.SetMode(gin.DebugMode)
|
||||
} else {
|
Loading…
Reference in New Issue