-
-
Notifications
You must be signed in to change notification settings - Fork 3
Modules
Artucuno edited this page Jun 28, 2022
·
2 revisions
Here is a basic guide on how to make modules for LoonaBilling
/modules/mymodule.py
from flask import Blueprint, render_template, abort
from jinja2 import TemplateNotFound
import config
module = Blueprint('My Module', __name__)
module.hasAdminPage = False
module.moduleDescription = 'My awesome module'
module.version = '1.0'
@module.route('/example')
def example():
return 'It works!'