This commit is contained in:
parent
fd124f2a5d
commit
50d343d3c5
1 changed files with 5 additions and 3 deletions
8
main.go
8
main.go
|
@ -4,6 +4,8 @@ import (
|
|||
"flag"
|
||||
"net/http"
|
||||
|
||||
"forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/Franz.Germann/ascii-live/handlers"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
@ -15,9 +17,9 @@ func main() {
|
|||
flag.Set("logtostderr", "true")
|
||||
|
||||
r := mux.NewRouter()
|
||||
r.HandleFunc("/ascii-live/list", ListHandler).Methods("GET")
|
||||
r.HandleFunc("/ascii-live/{frameSource}", Handler).Methods("GET")
|
||||
r.NotFoundHandler = http.HandlerFunc(NotFoundHandler)
|
||||
r.HandleFunc("/ascii-live/list", handlers.ListHandler).Methods("GET")
|
||||
r.HandleFunc("/ascii-live/{frameSource}", handlers.Handler).Methods("GET")
|
||||
r.NotFoundHandler = http.HandlerFunc(handlers.NotFoundHandler)
|
||||
|
||||
srv := &http.Server{
|
||||
Handler: r,
|
||||
|
|
Loading…
Reference in a new issue