mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Re-organise node structure and loading to make things somewhat more
simple. This also adds the ability to display servers on the treeview.
This commit is contained in:
0
web/pgadmin/misc/__init__.py
Normal file
0
web/pgadmin/misc/__init__.py
Normal file
27
web/pgadmin/misc/views.py
Normal file
27
web/pgadmin/misc/views.py
Normal file
@@ -0,0 +1,27 @@
|
||||
##########################################################################
|
||||
#
|
||||
# pgAdmin 4 - PostgreSQL Tools
|
||||
#
|
||||
# Copyright (C) 2013 - 2015, The pgAdmin Development Team
|
||||
# This software is released under the PostgreSQL Licence
|
||||
#
|
||||
##########################################################################
|
||||
|
||||
"""A blueprint module providing utility functions for the application."""
|
||||
MODULE_NAME = 'misc'
|
||||
|
||||
import config
|
||||
from flask import Blueprint, render_template
|
||||
from flask.ext.security import login_required
|
||||
|
||||
# Initialise the module
|
||||
blueprint = Blueprint(MODULE_NAME, __name__, static_folder='static', template_folder='templates', url_prefix='')
|
||||
|
||||
##########################################################################
|
||||
# A special URL used to "ping" the server
|
||||
##########################################################################
|
||||
@blueprint.route("/ping")
|
||||
def ping():
|
||||
"""Generate a "PING" response to indicate that the server is alive."""
|
||||
return "PING"
|
||||
|
||||
Reference in New Issue
Block a user