Replace HTTP server implementation with Flask API for DNS updates

This commit is contained in:
2025-12-27 10:22:26 +01:00
parent b78c848525
commit 2db1671d8a
2 changed files with 12 additions and 29 deletions

12
app.py Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env python3
from flask import Flask
app = Flask('dns-updater')
@app.route('/api/dnsupdate')
def api_root():
return "Welcome to the DNS Updater API"
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8080)