webhook management
[pharext/pharext.org] / app / routes.ini
index 40782bf8efd45790f9fc68bee200b64c30857308..ad01201599864f1a5fe54a4be4ac40fb7a57abe7 100644 (file)
@@ -7,6 +7,9 @@ GET[] = /pages/{page}
 [Github\Callback]
 GET[] = /github/callback
 
+[Github\Hook]
+POST[] = /github/hook
+
 [Github\Index]
 GET[] = /github
 
@@ -16,6 +19,8 @@ GET[] = /github/repo/{owner}/{name}/{page}
 
 [Github\Repo\Hook]
 POST[] = /github/repo/{owner}/{name}/hook/{action}
+; if the user has to re-authenticate, we'll receive a GET because of a redirect
+GET[] = /github/repo/{owner}/{name}/hook/{action}
 
 [Github\Signin]
 GET[] = /github/signin