             crashobjs = {}
             for item in arr
                 crashobjs[item.id] = item
-            return res.send {"ok":"1","crashdata": JSON.stringify(crashobjs)}
+            return res.send {"ok":"1","crashdata": crashobjs}
+
+    app.get "/crashreports", (req, res) ->
+
+        crashreports = db.collection('crashreports')
+        crashreports.find().run (err,arr) ->
+            return res.send {"ok":"0","errors": err} if err?
+
+            body = "Crashreports index:<br>"
+            _.each arr, (item) ->
+                linkurl  = "#{settings.server.url}/crashreports/#{item.id}"
+                linktext = "#{item.product} #{item.files['rich-core'].origname}"
+                body    += "<a href=\"#{linkurl}\">#{linktext}</a><br>"
+
+            res.writeHead 200,
+              'Content-Length': body.length,
+              'Content-Type': 'text/html'
+            return res.end body
 
     return app
 

http       = require('http')
form       = require('connect-form')
MongoStore = require('connect-mongo')

create_app = (settings, db) ->
    basedir = settings.app.root


    require('import-api').init_import_api settings, app, db


    #TODO: move to own module
    app.get "/crashreports/:id", (req, res) ->
        crashreports = db.collection('crashreports')
        crashreports.find({"id":req.params.id}).run (err,arr) ->
