# -*- coding: utf-8 -*-
"""
Created on Wed Aug  2 17:50:59 2017

@author: huang
"""

' url handlers '

import re, time, json, logging, hashlib, base64, asyncio

from coroweb import get, post

from models import User, Comment, Blog, next_id

@get('/')
async def index(request):
    users = await User.findAll()
    return {
        '__template__': 'test.html',
        'users': users
    }