Created
February 16, 2017 15:00
-
-
Save RogerNoble/f6a0ef97bfddf403e2be4e3c9285651f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Blueprint | |
# plugin version number | |
version = '1.0.0' | |
# name reference for plugin. This name will be used as part of the prefix of an URL | |
name = 'HelloWorld' | |
# engine must contain the class name of the blueprint | |
engine = 'mod_hello_world' | |
# description | |
description = "Hello World! REST API endpoint" | |
mod_hello_world = Blueprint('HelloWorld', __name__) | |
@mod_hello_world.route('/') | |
def hello(): | |
return 'Hello World!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment