Commits

gao shuai committed 42b0e6b

api reference

  • Participants
  • Parent commits ce36f92

Comments (0)

Files changed (3)

 	  }
 	  path = os.path.join(os.path.dirname(__file__), 'tpl','signup.html')
 	  self.response.out.write(template.render(path, template_values))
-class errorsameurl(webapp.RequestHandler):
+class errorsameurl(yui.RequestHandler):
   def get(self):
 	errormsg='你输入的shorturl已经被注册,换一个吧'
 	template_values = {
+API:
+	{HOST}/api/{username}/(today|tommorrow|nowterm).json[?callback={func}]
+	example: http://kb.gongda.tk/api/gao/today.json

File tpl/aboutpage.html

 
 <h2>内容完善中。。。。。。</h2>
 <h2><a href="example">来看个例子吧</a></h2>
+<h2><a href="https://bitbucket.org/weakdancer/wd-kcb-hg">项目主页</a></h2>
 <p align="center">