Exemple #1
0
 def post(self):
     data = get_json_request_body(self)
     self.write(user_api.generate_token(self.db, data))
Exemple #2
0
 def get(self):
     # self.render('api-token.html')
     self.write(
         user_api.generate_token(self.db, {'email': self.current_user}))