import express = require ( "express" ) ; import db = require ( "../db" ) ; export function index ( req , res ) { db . getUsers ( function ( users ) { console . dir ( users ) ; res . render ( 'index' , { title : 'ImageBoard' , users : users } ) ; } ) ; } ;