mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-24 05:31:57 +00:00
doi plugin
* feature: encrypt doi password * bugfix: add URL rule for pages
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
"""invenio module for TUGRAZ theme."""
|
||||
|
||||
from . import config
|
||||
from .views import deposit_create, index
|
||||
|
||||
|
||||
class InvenioThemeTugraz(object):
|
||||
@@ -21,6 +22,10 @@ class InvenioThemeTugraz(object):
|
||||
|
||||
def init_app(self, app):
|
||||
"""Flask application initialization."""
|
||||
# add index route rule
|
||||
# https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask.add_url_rule
|
||||
app.add_url_rule("/", "index", index)
|
||||
app.add_url_rule("/uploads/new", "deposit_create", deposit_create)
|
||||
self.init_config(app)
|
||||
app.extensions["invenio-theme-tugraz"] = self
|
||||
|
||||
|
||||
Reference in New Issue
Block a user