mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 15:51:29 -04:00
webui:
- added better live reload. It uses the Retroshare built in server. Grunt is not required anymore. - removed unused buttons - started ChatHandler git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8185 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
90d6ac6697
commit
b05ee805e4
13 changed files with 179 additions and 63 deletions
23
libresapi/src/api/LivereloadHandler.h
Normal file
23
libresapi/src/api/LivereloadHandler.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include "ResourceRouter.h"
|
||||
#include "StateTokenServer.h"
|
||||
|
||||
namespace resource_api
|
||||
{
|
||||
|
||||
// very simple livereload system, integrated into the existing state token system
|
||||
// the response to / is only a statetoken
|
||||
// if /trigger is called, then the state token is invalidaten and replaced wiht a new one
|
||||
class LivereloadHandler: public ResourceRouter
|
||||
{
|
||||
public:
|
||||
LivereloadHandler(StateTokenServer* sts);
|
||||
|
||||
private:
|
||||
void handleWildcard(Request& req, Response& resp);
|
||||
void handleTrigger(Request& req, Response& resp);
|
||||
StateTokenServer* mStateTokenServer;
|
||||
StateToken mStateToken;
|
||||
};
|
||||
} // namespace resource_api
|
Loading…
Add table
Add a link
Reference in a new issue