Skip to content
Snippets Groups Projects
Commit f8032929 authored by Erick Hitter's avatar Erick Hitter
Browse files

Add response to provide user with some feedback

parent 0dd3a625
No related branches found
No related tags found
1 merge request!1Basic plugin functionality
...@@ -53,7 +53,12 @@ app.post( '/log', function( req, res ) { ...@@ -53,7 +53,12 @@ app.post( '/log', function( req, res ) {
content: content, content: content,
status: 'publish' status: 'publish'
} ).then( function( resp ) { } ).then( function( resp ) {
res.sendStatus( 200 ); var response = {
"response_type": "ephemeral",
"text": "Entry recorded (" + resp.id + ")\n" + resp.title.rendered + "\n\n" + resp.link
};
res.send( response);
} ); } );
} ); } );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment