Skip to content

Commit f5b692e

Browse files
authored
Create return_latest_post_on_get.ws
1 parent fb586a4 commit f5b692e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

return_latest_post_on_get.ws

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
if (var('request.method') == 'POST') {
2+
store('latest_request', var('request.content'));
3+
} else {
4+
latest = var('latest_request');
5+
if (latest) {
6+
set_response(latest);
7+
}
8+
}

0 commit comments

Comments
 (0)