summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
blob: 4b03d2d98b621962d23e2420f521ac5aad8e7acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from flask import g, render_template, url_for
from ogcp.og_server import OGServer
from flask_babel import _
from ogcp import app

@app.before_request
def load_config():
    g.server = OGServer()
    g.server.load_config('ogcp/cfg/ogserver.json')

@app.route('/')
def index():
    return render_template('base.html')

@app.route('/scopes/')
def scopes():
    return render_template('base.html')