mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 14:20:54 +03:00
19 lines
321 B
Go
19 lines
321 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
s := Handlers{}
|
||
|
h := Handler(s)
|
||
|
|
||
|
// r := chi.NewRouter()
|
||
|
// r.Use(middleware.Logger)
|
||
|
// r.Get("/welcome", func(w http.ResponseWriter, r *http.Request) {
|
||
|
// w.Write([]byte("welcome"))
|
||
|
// })
|
||
|
// r.Mount("/", Handler(&handlers))
|
||
|
http.ListenAndServe(":3000", h)
|
||
|
}
|