2023-11-23 19:01:17 -05:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2023-11-24 13:25:24 -05:00
|
|
|
"log"
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/flamego/flamego"
|
2023-11-23 19:01:17 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
f := flamego.Classic()
|
|
|
|
|
2023-11-24 13:25:24 -05:00
|
|
|
f.Get("/{*}", printRequestPath)
|
2023-11-23 19:01:17 -05:00
|
|
|
|
2023-11-24 13:25:24 -05:00
|
|
|
log.Println("Server is running...")
|
|
|
|
log.Println(http.ListenAndServe("0.0.0.0:2830", f))
|
2023-11-23 19:01:17 -05:00
|
|
|
}
|