patx/relay-lang

import lib.common as common
import routes.pages as pages
import routes.auth as auth
import routes.feed as feed
import routes.users as users

app = WebApp()
app.sessions(common.db.collection("relay_sessions"))
common.posts.create_index({"author_username": 1, "seq": -1})
common.follows.create_index({"follower_username": 1, "following_username": 1}, unique=True)
pages.register(app)
auth.register(app)
feed.register(app)
users.register(app)
server = WebServer()
server.run(app)