mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-08 22:32:44 -04:00
re-added dependencies, to get onionshare working in Tails again (fixes #16)
This commit is contained in:
parent
b05d13af46
commit
851777fe42
265 changed files with 71657 additions and 19 deletions
|
@ -0,0 +1,7 @@
|
|||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
from moduleapp.apps.admin import admin
|
||||
from moduleapp.apps.frontend import frontend
|
||||
app.register_module(admin)
|
||||
app.register_module(frontend)
|
|
@ -0,0 +1,14 @@
|
|||
from flask import Module, render_template
|
||||
|
||||
|
||||
admin = Module(__name__, url_prefix='/admin')
|
||||
|
||||
|
||||
@admin.route('/')
|
||||
def index():
|
||||
return render_template('admin/index.html')
|
||||
|
||||
|
||||
@admin.route('/index2')
|
||||
def index2():
|
||||
return render_template('./admin/index.html')
|
|
@ -0,0 +1 @@
|
|||
/* nested file */
|
|
@ -0,0 +1 @@
|
|||
Admin File
|
|
@ -0,0 +1 @@
|
|||
Hello from the Admin
|
|
@ -0,0 +1,9 @@
|
|||
from flask import Module, render_template
|
||||
|
||||
|
||||
frontend = Module(__name__)
|
||||
|
||||
|
||||
@frontend.route('/')
|
||||
def index():
|
||||
return render_template('frontend/index.html')
|
|
@ -0,0 +1 @@
|
|||
Hello from the Frontend
|
Loading…
Add table
Add a link
Reference in a new issue