mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 04:40:37 +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)
|
||
|
}
|