   // Test endpoint
   router.get("/hello", handler: closure)
 
-  // Get all images
+  // Get all image documents
   router.get("/images") { _, response, next in
     database.queryByView("images", ofDesign: "main_design", usingParameters: [.Descending(false), .IncludeDocs(true)]) { (document, error) in
       if let document = document where error == nil {

import CouchDB
import LoggerAPI
import SwiftyJSON
//import Credentials

// Setup the handlers for the Photo APIs
func defineRoutes() {

    }
  }

  // Create a new user in the database
  router.post("/users") { request, response, next in
    do {
      let rawUserData = try BodyParser.readBodyData(request)
