mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Webpack all the things! Fixes #2135
This significantly speeds up loading of the application; in an average of 3 tests, v1.6 loaded in 11.5s in the runtime on a Mac, whilst the webpacked version of the code loaded in 5.53s.
This commit is contained in:
committed by
Dave Page
parent
d04ac7656a
commit
4a91bcde30
@@ -66,7 +66,7 @@ class MiscModule(PgAdminModule):
|
||||
Returns:
|
||||
list: a list of url endpoints exposed to the client.
|
||||
"""
|
||||
return ['misc.ping']
|
||||
return ['misc.ping', 'misc.index']
|
||||
|
||||
|
||||
# Initialise the module
|
||||
@@ -76,7 +76,7 @@ blueprint = MiscModule(MODULE_NAME, __name__)
|
||||
##########################################################################
|
||||
# A special URL used to "ping" the server
|
||||
##########################################################################
|
||||
@blueprint.route("/")
|
||||
@blueprint.route("/", endpoint='index')
|
||||
def index():
|
||||
return ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user