mirror of
https://github.com/lxsang/ant-http
synced 2025-07-26 10:39:45 +02:00
major change for plugin handle
This commit is contained in:
@ -189,4 +189,27 @@ void rmfolder(int c, const char* m, dictionary rq)
|
||||
void pexit()
|
||||
{
|
||||
LOG("Exit file manager,plugins\n");
|
||||
}
|
||||
void handler(int client, const char* method, const char* rqpth, dictionary rq)
|
||||
{
|
||||
if(EQU(rqpth,"default"))
|
||||
{
|
||||
execute(client,method,rq);
|
||||
}
|
||||
else if(EQU(rqpth,"add"))
|
||||
{
|
||||
add(client,method,rq);
|
||||
}
|
||||
else if(EQU(rqpth,"rmfolder"))
|
||||
{
|
||||
rmfolder(client,method,rq);
|
||||
}
|
||||
else if(EQU(rqpth,"mkfolder"))
|
||||
{
|
||||
mkfolder(client,method,rq);
|
||||
}
|
||||
else
|
||||
{
|
||||
unknow(client);
|
||||
}
|
||||
}
|
Binary file not shown.
Reference in New Issue
Block a user