grooveondemand/groove/ondemand.py
2022-11-19 16:06:23 -08:00

16 lines
258 B
Python

from bottle import Bottle, auth_basic
from groove.auth import is_authenticated
server = Bottle()
@server.route('/')
def index():
return "Groovy."
@server.route('/admin')
@auth_basic(is_authenticated)
def admin():
return "Authenticated. Groovy."