     }
   }
 
-  // Get a specific user
+  // Get a specific user document
   router.get("/users/:userId") { request, response, next in
     guard let userId = request.params["userId"] else {
       response.error = NSError(domain: BluePic.Domain, code: BluePic.Error.Internal.rawValue, userInfo: [NSLocalizedDescriptionKey: String(BluePic.Error.Internal)])

import CouchDB
import LoggerAPI
import SwiftyJSON
//import Credentials

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

    }
  }

  // Get all user documents
  router.get("/users") { _, response, next in
    database.queryByView("users", ofDesign: "main_design", usingParameters: [.Descending(true), .IncludeDocs(false)]) { (document, error) in
      if let document = document where error == nil {
