2022-11-19 16:06:23 -08:00
|
|
|
from bottle import Bottle, auth_basic
|
|
|
|
from groove.auth import is_authenticated
|
2022-11-19 15:14:12 -08:00
|
|
|
|
|
|
|
server = Bottle()
|
|
|
|
|
|
|
|
|
|
|
|
@server.route('/')
|
|
|
|
def index():
|
|
|
|
return "Groovy."
|
2022-11-19 16:06:23 -08:00
|
|
|
|
|
|
|
|
|
|
|
@server.route('/admin')
|
|
|
|
@auth_basic(is_authenticated)
|
|
|
|
def admin():
|
|
|
|
return "Authenticated. Groovy."
|