mod_swift v0.3.0 Release Notes

Release Date: 2017-01-27 // over 5 years ago
  • This:

    let app = express(cookieParser(), session()) app.get("/express/cookies") { req, res, \_ in// returns all cookies as JSONtry res.json(req.cookies) } app.get("/express/") { req, res, \_ inlet tagline = arc4random\_uniform(UInt32(taglines.count)) let values : [String : Any] = ["tagline": taglines[Int(tagline)], "viewCount": req.session["viewCount"] ?? 0, "cowOfTheDay" : cows.vaca() ] try res.render("index", values) }
    

    and more.

    Also: leftpad.