shockrah
b9573ee09c
* Flattening /message/time_range handler further dfc-chan returns
2021-01-23 13:36:30 -08:00
shockrah
01320899a3
Base implementation of new /message/from_id route
...
! Requires unit testing
! Written with max response length in mind, (still ignores mem limits howevr)
2021-01-19 22:26:53 -08:00
shockrah
3b3fa14496
* Db::Messages::get_time_range now handles case where
...
start_time >= end_time
Which means we won't get weird requests from clients anymore(hopefully)
* Route handler for /message/time_range now handles db::Response::RestrictedInput
Responds with a simple 400 and nothing else
2021-01-19 19:43:21 -08:00
shockrah
5c4bc6f96f
Updated /message/get_time to pass client api testing
2021-01-18 23:28:32 -08:00
shockrah
6ffcb7a73b
+ /messages/get_range base route handler, ready for testing
2021-01-18 22:01:11 -08:00
shockrah
dfe53b323e
/messages/send now correctyl tells the user they're wrong about sendingmessages to a non-existant channel
2020-12-30 01:00:47 -08:00
shockrah
751b947bef
db/src/channels.rs/ : Clerical error fix in Response::Other<String> message
...
src/channels.rs/ : simple log of sql error to stderr
main.rs : swapped secret and name parameters as they were backwards somehow (tfw cant type)
src/messages.sr : more clerical shit(mispelled parameter name) and logging sql to stderr
2020-11-17 00:08:13 -08:00
shockrah
f0f0272c32
Removal of unused uses
or random code that was dead anyway
2020-11-16 22:58:58 -08:00
shockrah
b966c61c20
Finally the change over to db::messages::Messages::send in userland code
...
- removed old helper function which is no longer needed
* cleaned up responses for empty,other, and _ in /channels/create endpoint handler
2020-11-12 13:18:43 -08:00
shockrah
700da3695f
Removing whats left of db_types references
...
Finally relying on db library crate for database types
2020-11-07 18:20:34 -08:00
shockrah
797042b97a
Merge branch 'testing' into master
2020-08-22 15:58:13 -07:00
shockrah
0822be3d20
renamed server/ to api/ since this is really only the api portion of the typical fc server
2020-08-22 15:52:37 -07:00