Changeset - 7623e34b7aab
[Not reviewed]
default
0 1 0
Dennis Fink - 9 years ago 2016-03-16 00:07:45
dennis.fink@c3l.lu
Fix views.py
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
spaceapi/views.py
Show inline comments
 
from flask import Blueprint, jsonify, render_template, abort, request, redirect, url_for, current_app
 

	
 
from .utils import request_wants_json, ActiveStatus
 
from .auth import httpauth
 
from .state import set_new_state
 

	
 
root_views = Blueprint('root', __name__)
 

	
 

	
 
@root_views.route('/')
 
def index():
 
    if request_wants_json():
 
        return jsonify(ActiveStatus())
 
    return render_template('index.html', status=ActiveStatus())
 

	
 

	
 
@root_views.route('/status.json')
0 comments (0 inline, 0 general)