site/controllers/about.moon

17 lines
401 B
Plaintext

gh = require('github').new({access_token: os.getenv "GITHUB_TOKEN", httpclient_driver: 'httpclient.ngx_driver'})
http = require "lapis.nginx.http"
lapis = require "lapis"
class About extends lapis.Application
[about: "/about"]: =>
@user, err = gh\get_authenticated_user()
@title = "About Me"
if err
@err = err
return status: 500, render: "error"
return render: true