tewi/Module/mod_example.c
Nishi c1809aa935 can show index
git-svn-id: file:///raid/svn-personal/tewi/trunk@20 8739d7e6-ffea-ec47-b151-bdff447c6205
2024-09-14 09:59:15 +00:00

12 lines
344 B
C

/* $Id$ */
#include "../Server/tw_module.h"
int mod_init(struct tw_config* config, struct tw_tool* tools) {
tools->log("Example", "This is an example module");
tools->add_version("Example/0.0");
return 0;
}
int mod_request(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res) { return TW_MODULE_ERROR(403); }