Skip to content

Commit

Permalink
js tags
Browse files Browse the repository at this point in the history
  • Loading branch information
korovindenis committed Jun 12, 2023
1 parent d842a83 commit 3e83eb5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cmd/sfb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ var logslevel uint = 1
func init() {
if err := config.Init(); err != nil {
log.Printf("%s", err.Error())
os.Exit(EXIT_ERROR)
} else {
port = viper.GetUint32("port")
logslevel = viper.GetUint("logslevel")
}
port = viper.GetUint32("port")
logslevel = viper.GetUint("logslevel")
}

// @title Shutdown from browser
Expand Down
4 changes: 2 additions & 2 deletions internal/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
)

type Status struct {
Mode string
TimeShutDown string
Mode string `json:"mode"`
TimeShutDown string `json:"timeshutdown"`
}

type countdown struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
)

type Sfb struct {
HttpServer *http.Server
WebFolder *rice.Box
HttpServer *http.Server `json:"httpserver"`
WebFolder *rice.Box `json:"webfolder"`
}

// Define the rice box with the frontend static files
Expand Down

0 comments on commit 3e83eb5

Please sign in to comment.