This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tekstmelding/tekstmelding.py
T

30 lines
524 B
Python

from flask import Flask, request
import MySQLdb
import MySQLdb.cursors
import datetime
import config
db = MySQLdb.connect(
host = config.DATABASE_HOST,
user = config.DATABASE_USER,
passwd = config.DATABASE_PASS,
db = config.DATABASE_NAME,
cursorclass = MySQLdb.cursors.DictCursor)
cur = db.cursor()
app = Flask(__name__)
@app.route('/')
def main():
return 'Tekstmelding er bezt!'
@app.route('/callback')
def callack():
return 'Callback liksom.'
if __name__ == '__main__':
app.debug = config.DEBUG
app.run()