Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion go.mod
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
module tracker

go 1.15
go 1.16

require (
cloud.google.com/go v0.78.0 // indirect
github.com/go-sql-driver/mysql v1.4.0
github.com/gorilla/mux v1.6.2
github.com/gorilla/sessions v1.1.2
github.com/mattn/go-sqlite3 v1.14.6
golang.org/x/net v0.0.0-20210119194325-5f4716e94777
golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99

Expand Down
69 changes: 66 additions & 3 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion server/api.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,7 +17,7 @@ type Backend struct {
}

func NewBackend(settings *Settings, apis map[string]API) (*Backend, error) {
host := host.NewHost(settings.Hostname, settings.Port)
host := host.NewHost(settings.Hostname, settings.APIPort)
for subdomain, api := range apis {
fmt.Printf("Registering api handler for %q\n", subdomain)
api.RegisterHandlers(subdomain)
Expand Down
5 changes: 2 additions & 3 deletions server/frontend.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,6 +4,7 @@ import (
"net/http"

"tracker/server/host"
"tracker/web"
)

type WebFrontend interface {
Expand All@@ -27,9 +28,7 @@ func NewFrontend(settings *Settings, frontends map[string]WebFrontend) (*Fronten
}
}

// Register public files such as CSS, JS, and Images.
http.Handle("/public/", http.StripPrefix("/public/",
http.FileServer(http.Dir("templates/public"))))
http.Handle("/public/", http.FileServer(http.FS(web.Static)))

// Register our landing page.
http.HandleFunc("/", landingPage)
Expand Down
19 changes: 0 additions & 19 deletions templates/shows/add_show.html

This file was deleted.

38 changes: 0 additions & 38 deletions templates/shows/detail.html

This file was deleted.

38 changes: 0 additions & 38 deletions templates/shows/index.html

This file was deleted.

41 changes: 0 additions & 41 deletions templates/shows/navbar.html

This file was deleted.

43 changes: 0 additions & 43 deletions templates/shows/schedule.html

This file was deleted.

Loading