home » zplus/freepost.git
ID: e1e5e225d9a8d30ddd56776eac49f531c626cc11
22 lines — 495B — View raw


import bottle
import configparser
import functools
import importlib
import json
from bottle import abort, get, post, redirect, request
from urllib.parse import urlparse

# This is used to export the bottle object for the WSGI server
# See passenger_wsgi.py
application = bottle.app ()

# Load settings for this app
application.config.load_config ('settings.ini')

# Default app templates
bottle.TEMPLATE_PATH = [ './freepost/templates' ]


@get ('/', name='index')
def index ():
    return "ll"