Paolo Galli 151e2b84b2 Update .gitignore | 5 years ago | |
---|---|---|
.gitignore | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 5 years ago | |
lcmlog-server | 5 years ago |
Server side of a tool for reading and writing the lcm staff logs. The program doesn't accept any command line options.
For the test session, only the account log
can access.
Admins and 150 logs.
To do
In the main directory there is a folder named auth
that contain the following files:
Every file contain the list of the euid of the users that can send and request logs and update the database. Now there is only the euid of the log
account. If you want to add a new user, you have to add his euid in these files.
The first line is always the name of the method and can be only GET
, POST
or UPDATE
.
The GET
method is used to print all the logs that meet the required criteria.
The POST
method is used to add a log to the database.
The UPDATE
method is used to regenerate the internal server database.
It should only be called if a log file is added by hand, or if some of the log files get renamed or corrupted.
It assumes that all the log files are correctly formatted.
To do