18 lines
248 B
Go
Raw Normal View History

2017-08-31 16:30:44 +09:00
package main
import (
"github.com/valyala/fasthttp"
"git.loafle.net/commons_go/cors_fasthttp"
)
func main() {
2017-11-23 16:42:44 +09:00
c := cors_fasthttp.AllowAll()
2017-08-31 16:30:44 +09:00
fasthttp.ListenAndServe(":8080", c.Handler(Handler))
}
func Handler(ctx *fasthttp.RequestCtx) {
}