-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
36 lines (27 loc) · 898 Bytes
/
__init__.py
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
26
27
28
29
30
31
32
33
34
35
36
from py4web import action
# -*- coding: utf-8 -*-
from py4web import action, HTTP
from .istsos_auth import IstsosCeresioAuth, IstsosVerbanoAuth, IstsosLarioAuth
from .common import logger, cors #, checkin
# from .tools import get_form
ceresio = IstsosCeresioAuth()
verbano = IstsosVerbanoAuth()
lario = IstsosLarioAuth()
@action("index", method=["GET", "POST", "COMMENT"])
# @action("istsos", method=["GET", "POST"])
# @action("istsos.json", method=["GET", "POST"])
@action("ceresio", method=["GET", "POST", "COMMENT"])
@action.uses(cors)
def get_ceresio_istsos_token():
""" """
return ceresio.json()
@action("verbano", method=["GET", "POST", "COMMENT"])
@action.uses(cors)
def get_verbano_istsos_token():
""" """
return verbano.json()
@action("lario", method=["GET", "POST", "COMMENT"])
@action.uses(cors)
def get_lario_istsos_token():
""" """
return lario.json()