site/controllers/about.moon

17 lines
401 B
Plaintext
Raw Normal View History

2015-02-01 05:38:34 +00:00
gh = require('github').new({access_token: os.getenv "GITHUB_TOKEN", httpclient_driver: 'httpclient.ngx_driver'})
2015-02-01 05:50:21 +00:00
http = require "lapis.nginx.http"
2015-02-01 05:37:51 +00:00
lapis = require "lapis"
class About extends lapis.Application
[about: "/about"]: =>
@user, err = gh\get_authenticated_user()
2015-02-01 06:17:10 +00:00
@title = "About Me"
2015-02-01 05:37:51 +00:00
if err
@err = err
return status: 500, render: "error"
return render: true