19 lines
350 B
Python
19 lines
350 B
Python
|
from flask import Flask, render_template
|
||
|
|
||
|
app = Flask(__name__)
|
||
|
|
||
|
@app.route('/student')
|
||
|
def student():
|
||
|
return(render_template('student.html'))
|
||
|
|
||
|
@app.route('/lecturer')
|
||
|
def lecturer():
|
||
|
return(render_template('lecturer.html'))
|
||
|
|
||
|
|
||
|
@app.route('/ask')
|
||
|
def ask ():
|
||
|
return(200)
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
app.run(host='0.0.0.0', debug = True)
|