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.

24 lines
413 B

  1. package main
  2. import (
  3. "net/http"
  4. "git.tovijaeschke.xyz/tovi/SuddenImpactRecords/Api"
  5. "git.tovijaeschke.xyz/tovi/SuddenImpactRecords/Database"
  6. "github.com/gorilla/mux"
  7. )
  8. func main() {
  9. var (
  10. router *mux.Router
  11. )
  12. Database.Init()
  13. router = Api.InitApiEndpoints()
  14. // TODO: Run this within goroutine when running vue application
  15. // Start and listen to requests
  16. http.ListenAndServe(":8081", router)
  17. }