You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
484 B

package main
import (
"log"
"net/http"
"git.tovijaeschke.xyz/tovi/JumboPetstore/api"
"git.tovijaeschke.xyz/tovi/JumboPetstore/database"
"github.com/gorilla/mux"
)
func main() {
var (
router *mux.Router
)
log.Println("Initializing database and running AutoMigrate...")
database.Init()
log.Println("Initializing Petstore API...")
// Initialize API endpoints
router = api.InitApiEndpoints()
// Start and listen to requests
http.ListenAndServe(":8080", router)
}