from app import app
from app.slot import controller as con
import config
from auth import requires_auth
from flask import render_template
from flask.ext.login import login_required


@app.route('/dashboard')
#  @requires_auth
@login_required
def index():
    return con.index()


@app.route('/new', methods=['GET', 'POST'])
@requires_auth
def render_new_procedure_form():
    return con.render_new_procedure_form()


@app.route('/sms', methods=['POST'])
@requires_auth
def receive_sms():
    return con.receive_sms()
from app import app
from app.slot import controller as con
import config
from auth import requires_auth
from flask import render_template
from flask.ext.login import login_required


@app.route('/')
@app.route('/dashboard')
@login_required
def index():
    return con.index()


@app.route('/new', methods=['GET', 'POST'])
@requires_auth
def render_new_procedure_form():
    return con.render_new_procedure_form()


@app.route('/sms', methods=['POST'])
@requires_auth
def receive_sms():
    return con.receive_sms()
Add / route to index. Remove old requires_auth decorator.
Add / route to index.
Remove old requires_auth decorator.
