Skip to content

Instantly share code, notes, and snippets.

@RogerNoble
Created February 16, 2017 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RogerNoble/f6a0ef97bfddf403e2be4e3c9285651f to your computer and use it in GitHub Desktop.
Save RogerNoble/f6a0ef97bfddf403e2be4e3c9285651f to your computer and use it in GitHub Desktop.
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