18 lines
236 B
Go
18 lines
236 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
_ "github.com/mattn/go-sqlite3"
|
|
)
|
|
|
|
func main() {
|
|
ntfy := SetupNtfyClient()
|
|
|
|
db := SetupDatabase()
|
|
SetupRsvpsTable(db)
|
|
|
|
SetupAuth()
|
|
hnd := &Handler{db, ntfy}
|
|
http.ListenAndServe(":8000", hnd)
|
|
}
|