temporary testing of webhook sent by Gitea
This commit is contained in:
parent
87cf00673c
commit
f2b05fde71
7
app.moon
7
app.moon
@ -23,6 +23,13 @@ class Simplex extends Application
|
|||||||
else
|
else
|
||||||
super err --, trace
|
super err --, trace
|
||||||
|
|
||||||
|
"/githook": =>
|
||||||
|
@html ->
|
||||||
|
p "Headers:"
|
||||||
|
ul ->
|
||||||
|
for k,v in pairs @req.headers
|
||||||
|
li "#{k}: #{v}"
|
||||||
|
|
||||||
[index: "/"]: =>
|
[index: "/"]: =>
|
||||||
if @user
|
if @user
|
||||||
@keys = APIKeys\select "WHERE user_id = ? ORDER BY created_at ASC", @user.id
|
@keys = APIKeys\select "WHERE user_id = ? ORDER BY created_at ASC", @user.id
|
||||||
|
Loading…
Reference in New Issue
Block a user