Skip to content

Commit

Permalink
resolves #1
Browse files Browse the repository at this point in the history
  • Loading branch information
adoublef committed Aug 3, 2022
1 parent fbdb290 commit 0d5896b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
package main

import (
"log"
"net/http"

"github.com/rog-golang-buddies/rapidmidiex/www"
)

func main() {
// Feel free to delete this file.
http.ListenAndServe(":8081", www.NewService())
if err := run(); err != nil {
log.Fatalln(err)
}
}

func run() error {
return http.ListenAndServe(":8081", www.NewService())
}

0 comments on commit 0d5896b

Please sign in to comment.