summaryrefslogtreecommitdiff
path: root/src/webserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/webserver.c')
-rw-r--r--src/webserver.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/webserver.c b/src/webserver.c
index f30a811..9b62f0e 100644
--- a/src/webserver.c
+++ b/src/webserver.c
@@ -60,11 +60,20 @@ static int handle_request( void *cls, struct MHD_Connection *connection,
const char *name = MHD_lookup_connection_value( connection, MHD_GET_ARGUMENT_KIND, "name" );
if( name != NULL ) {
+ master_output_outstanding_messages( name, biruda_msg, sizeof( biruda_msg ) );
+ } else {
+ return MHD_NO;
+ }
+ } else if( strcmp( op, "tail" ) == 0 ) {
+
+ const char *name = MHD_lookup_connection_value( connection, MHD_GET_ARGUMENT_KIND, "name" );
+
+ if( name != NULL ) {
master_output_tail( name, biruda_msg, sizeof( biruda_msg ) );
} else {
return MHD_NO;
}
- }
+ }
} else {
snprintf( biruda_msg, sizeof( biruda_msg ), "Welcome to biruda! Please state your wish..\n" );