Permalink
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 222 Bytes
package main
import (
"github.com/kataras/iris"
)
func main() {
app := iris.New()
app.Get("/", func(ctx iris.Context) {
file := "./files/first.zip"
ctx.SendFile(file, "c.zip")
})
app.Run(iris.Addr(":8080"))
}