feat(all): init
This commit is contained in:
16
addons/account/__init__.py
Normal file
16
addons/account/__init__.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from flask import Flask
|
||||
|
||||
manifest = {
|
||||
"name": "Account Addon",
|
||||
"version": "1.0.0",
|
||||
"description": "An addon to manage user accounts.",
|
||||
"author": "Mike",
|
||||
"license": "",
|
||||
"url": "",
|
||||
"addon": "account"
|
||||
}
|
||||
|
||||
def register_addon(app: Flask):
|
||||
from .api import bp
|
||||
app.register_blueprint(bp, url_prefix='/account')
|
||||
pass
|
||||
11
addons/account/api.py
Normal file
11
addons/account/api.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from flask import Blueprint
|
||||
|
||||
bp = Blueprint('account', __name__)
|
||||
|
||||
@bp.route('/')
|
||||
def account_home():
|
||||
return "Welcome to the Account Addon!"
|
||||
|
||||
@bp.route('/profile')
|
||||
def profile():
|
||||
return "This is the user profile page."
|
||||
0
addons/account/model.py
Normal file
0
addons/account/model.py
Normal file
Reference in New Issue
Block a user