Need to create a micro-service using Express

app.js

var express=require("express");
var app = express();
var DBmodule = require("./routes/javascripts/dbmodule.js")

//setting pug view engine
app.set('views','./views');
app.set('view engine', 'pug');

app.get('/',function(req,res){
res.render('login');
})

console.log("server started for Express Wallet App");
app.listen(1234);

login.js

var express=require("express");
var app = express();
var DBmodule = require("./routes/javascripts/dbmodule.js")

app.get('/login',function(req,res){
console.log("Entered /login")
var name=req.query.username;
var pass=req.query.password;
//this line is giving error.
DBmodule.authenticateUser(name,pass,res);
})

console.log("server started for Express Wallet App");
app.listen(1235); 

login.pug

doctype html
html
  head
    title Login
    link(rel='stylesheet', href='./stylesheets/style.css', type='text/css')
body(align='center')
  header
    h1 Login
  form(action='http://localhost:1235/login')
    | Username:
    input(type='text', name='username', ng-model='username')
    br
    br
    | Password:
    input(type='password', name='password', ng-model='password')
    br
    br
    button(type='submit')
    | Submit

I tried creating an application through app.js and login service through 'login.js'. login.pug is a form. This code gives me an error, "Request is not defined". Kindly help.