Skip to content

Commit

Permalink
n/s
Browse files Browse the repository at this point in the history
  • Loading branch information
f1mishutka committed Apr 10, 2024
1 parent 964f6f2 commit 76b8886
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/web_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ func WebIndex(c *gin.Context) {
}

// builds API routing and handlers for goappbase
func BuildWebApiRouting(app *goappbase.AppBase) {
func BuildWebApiRouter(app *goappbase.AppBase) {
app.WebApiPathPrefix = "/api"
app.WebApiEnableGet = true
app.WebApiEnableGet = !Settings.Production // in production mode only

app.
ApiHandler("/ping", Api_HealthCheck).
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func main() {
app.App.BuildWebRouterF = app.BuildWebRouter

//API
app.BuildWebApiRouting(app.App)
app.BuildWebApiRouter(app.App)

//initialization
app.App.PreRunF = func() error {
Expand Down

0 comments on commit 76b8886

Please sign in to comment.