-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlas.py
More file actions
50 lines (40 loc) · 1.03 KB
/
las.py
File metadata and controls
50 lines (40 loc) · 1.03 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import pas
import lupa
from lupa import LuaRuntime
lua = LuaRuntime(unpack_returned_tuples=True) # ランタイムを作成
a = lua.require('pages')
print(a)
print("aaaa")
@pas.get
def page(e):
print()
t = lua.table_from([e.path, e.ip, e.ua, e.host,
e.cookie, e.header,e.data,
e.post])
print("hello")
return a[0](t)
@pas.post
def page(e):
print()
t = lua.table_from([e.path, e.ip, e.ua, e.host,
e.cookie, e.header,e.data,
e.post])
print("hello")
return a[1](t)
@pas.put
def page(e):
print()
t = lua.table_from([e.path, e.ip, e.ua, e.host,
e.cookie, e.header,e.data,
e.post])
print("hello")
return a[2](t)
@pas.delete
def page(e):
print()
t = lua.table_from([e.path, e.ip, e.ua, e.host,
e.cookie, e.header,e.data,
e.post])
print("hello")
return a[3](t)
pas.run(6598)