Advertisement
hellboy2k8

anotherError

May 18th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. from flask import Blueprint, request, jsonify
  2. from flask.ext.pymongo import PyMongo
  3.  
  4. from hadoopstack.services.cluster import make_connection
  5. from hadoopstack.services.cluster import spawn_instances
  6.  
  7. app_v1 = Blueprint('v1', __name__, url_prefix='/v1')
  8.  
  9. app_v1.config.from_object('config')
  10.  
  11. mongo = PyMongo(app_v1)
  12.  
  13.  
  14.  
  15. @app_v1.route('/')
  16. def version():
  17. return "v1 API. Jobs and clusters API are accessible at /jobs and \
  18. /clusters respectively"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement