#-*- encoding: utf-8 -*-
from flask import Flask, Blueprint, current_app, render_template, jsonify, request

home = Blueprint("home", __name__, template_folder='templates')

@home.route('/', methods=['GET'])
def index():
	# current_app.logger.info('Resource requested: %s', ('welcome'))
	salutation = 'Thank for using flask-fundamentum!'
	return render_template("dashboard.html", msg=salutation)

@home.route('/dashboard', methods=['GET'])
def dashboard():
	# current_app.logger.info('Resource requested: %s', ('welcome'))
	salutation = 'Thank for using flask-fundamentum!'
	return render_template("dashboard.html", msg=salutation)

@home.route('/print/<input>', methods=['GET'])
def print_url_param(input=None):
	return jsonify(resp=input)

@home.route("/xxx", methods=["GET"])
def test_xxx():
	a = request.args.get("uuu")
	return "hello." + a