     func index(request: Request) throws -> ResponseRepresentable {
         return try User.all().makeJSON()
     }
-    
+
     func show(request: Request, user: User) throws -> ResponseRepresentable {
         return user
     }
-    
+
     func update(request: Request, user: User) throws -> ResponseRepresentable {
         //TODO: figure out how to change password
         let new = try request.jsonUser()

        return Resource(index: index,
                        show: show,
                        update: update,
                        destroy: delete,
                        clear: clear)
    }
}

        try user.save()
        return Response(status: .ok)
    }

    func delete(request: Request, user: User) throws -> ResponseRepresentable {
        try user.delete()
        return Response(status: .ok)
