15 lines
343 B
Python
15 lines
343 B
Python
import flask
|
|
import sys
|
|
import os
|
|
sys.path.insert(1,os.path.abspath("./zk"))
|
|
from zk import ZK, const
|
|
|
|
app = flask.Flask(__name__)
|
|
app.config["DEBUG"] = True
|
|
|
|
|
|
@app.route('/', methods=['GET'])
|
|
def home():
|
|
return "<h1>Distant Reading Archive</h1><p>This site is a prototype API for distant reading of science fiction novels.</p>"
|
|
|
|
app.run() |