summaryrefslogtreecommitdiffstats
path: root/protoype/router/driver.js
blob: 99c101aa7b1bde57c852016daa77602f4c169637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* handlers used to drive
 *
 */

function create_get(req, res, next) {
    res.send('<!DOCTYPE html>\n' +
                '<html>\n' +
                '<body>\n' +
                '<form method="post" action="/create">\n' +
                '    Tag: <input type="text" name="tag" /><br />\n' +
                '    ID: <input type="text" name="id" /><br />\n' +
                '    Make: <input type="text" name="make" /><br />\n' +
                '    Model: <input type="text" name="model" /><br />\n' +
                '    Year: <input type="text" name="year" /><br />\n' +
                '    Desc: <input type="text" name="desc" /><br />\n' +
                '    Signature: <input type="text" name="sig" /><br />\n' +
                '    Location: <input type="text" name="loc" /><br />\n' +
                '    Secret: <input type="text" name="secret" /><br />\n' +
                '    <input type="submit" value="add" />\n' +
                '</form>\n' +
                '</body>\n' +
              '</html>\n');
}

exports.create_get = create_get;