Skip to content

Commit

Permalink
add default rote
Browse files Browse the repository at this point in the history
change-type: patch
  • Loading branch information
ab77 authored Jan 3, 2024
1 parent 97e717f commit 78156e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

app = Flask(__name__)

@app.route('/')
def hello():
return 'Hello World!'

@app.route('/modprobe/<module>')
def modprobe(module):
subprocess.call(['modprobe',module])
Expand Down

0 comments on commit 78156e4

Please sign in to comment.