Fixes
This commit is contained in:
parent
11c3655907
commit
a2c6508e4b
2 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import re
|
||||
import json
|
||||
|
||||
from flask import Flask, abort, request, redirect
|
||||
from flask import Flask, abort, request, redirect, Response
|
||||
import nftables
|
||||
from pyroute2 import IPDB
|
||||
|
||||
|
|
@ -72,7 +73,7 @@ def status():
|
|||
result['venue-info-url'] = app.config['VENUE_INFO_URL']
|
||||
result['seconds-remaining'] = mac_timeout // 1000
|
||||
result['can-extend-session'] = True
|
||||
return result
|
||||
return Response(json.dumps(result), mimetype='application/captive+json')
|
||||
|
||||
@app.route('/api/login', methods=['POST'])
|
||||
def login():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue