Skip to content

Commit

Permalink
#2: Add to cmd output a link to open the main page
Browse files Browse the repository at this point in the history
  • Loading branch information
proofrock committed Feb 15, 2024
1 parent e52f855 commit 5e943d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
foodhubber
foodhubber.upx
foodhubber.upx
foodhubber.db
1 change: 1 addition & 0 deletions backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,6 @@ func main() {
app.Post("/api/setStock", set_stock.SetStock)

fmt.Println(" - server on port", params.Port)
fmt.Printf(" - all ok. Please open http://localhost:%d\n", params.Port)
app.Listen(fmt.Sprintf(":%d", params.Port))
}

0 comments on commit 5e943d5

Please sign in to comment.