aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/tui/controllers/tor.py
blob: ca96209ed0aee446e720050487a1dcedd73b9694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import web
import view, config
from view import render
from tui.utils import session

"""
The main Tor status page
"""
class status:
  def GET(self):
    return render.base(render.torstatus())

  def POST(self):
    return render.base(render.torstatus())

"""
Tor configuration page
"""
class config:
  def GET(self):
    return render.base(render.torconfig())

  def POST(self):
    return render.base(render.torconfig())