1
0
Commit Graph

26 Commits

Author SHA1 Message Date
837fec8545
Removed unneded CURRENT_TIMESTAMP defaults. 2023-02-05 20:02:22 +04:00
081d6147b8
Removed RETURNING statements. 2023-02-05 20:01:52 +04:00
309044f651
Dates are now of type time.Time. 2023-02-05 16:28:55 +04:00
729e58fdca
Files are moved out of pkg directory. 2023-01-16 04:25:04 +04:00
4bb06cb2a1
This project was made into a library. 2023-01-12 03:27:45 +04:00
be5d0782b6
Changed Update() handler accordingly to a new logic. 2022-10-21 04:38:53 +04:00
6c08e4cb16
Now ID in Reply could be rendered as JSON. 2022-10-21 04:38:08 +04:00
b94b5caf4c
Added entryID arg to Update*() methods. So IDs could be changed. 2022-10-21 04:37:28 +04:00
6abae1d7ca
Added entry_id to change in UPDATE for an entry. 2022-10-21 04:36:41 +04:00
95b74985f0
Added entry_id to UPDATE to change for a reply. 2022-10-21 04:36:22 +04:00
8221da67eb
Switched ID and Created fields of a reply in Exec(). 2022-10-21 04:28:55 +04:00
121c3ff8fd
Implemented Count() and update and delete methods. 2022-10-21 04:25:15 +04:00
056985799f
Added Update() handler. A little reorganising in Entries(). 2022-10-21 04:24:07 +04:00
57879522a1
Added PUT endpoints in main. 2022-10-21 04:22:26 +04:00
005330ff2c
Added new sql statements. In new reply entry_id and created swapped places. 2022-10-21 04:22:07 +04:00
49a92151e4
In entryGetAll.sql entry.message moved next to name. 2022-10-21 04:20:53 +04:00
d5b850d36b
Added log for a fail of retrieving entries. Added error handling and log for entries JSON encoding. 2022-10-21 03:22:57 +04:00
a000d1edad
Added PUT method to HttpServer. 2022-10-21 03:21:53 +04:00
bdcf5fbf63
Test shell script removed. 2022-10-21 03:21:37 +04:00
82a135cf1e
Removed 404 for GET /. 204 changed to 201 for POST /:entry/reply. Specified 404 for DELETE /:entry/reply. 2022-10-21 03:21:05 +04:00
2784b0e70e
Moved justcaptcha package. Added a comment for CheckCaptcha() func. 2022-10-21 03:04:05 +04:00
6aa2bd10ff
Made use of http.Error(). Removed error return from New() func. Added StatusCreated header to Reply() method. 2022-10-21 03:03:05 +04:00
059efc4004
Args website and message has swapped their places. 2022-10-21 03:01:01 +04:00
daaf872049
Currently only regular TCP connections to captcha service supported. 2022-10-21 03:00:24 +04:00
9243ad4bbd
A little more informative log. Error removed from handlers because it doesn't return them. :) 2022-10-21 02:59:34 +04:00
c6e719b5c1
Initial commit. 2022-10-19 03:25:43 +04:00