Commit Graph

12 Commits

Author SHA1 Message Date
shockrah
549c69f668 + Added Response::RestrictedInput to db-lib
Should make it more dsecriptive with really weird input and prevent even more confusing 500 responses to the client

+ db-lib::Channels::add now also potentially returns this new RestrictedInput variant
2020-12-29 23:50:57 -08:00
shockrah
201297f4c1 Checking for valid channel.kind on /channels/create 2020-12-12 13:51:43 -08:00
shockrah
8b7684c0a7 + Fixed issue with /channels/delete return 200 on db-lib failure 2020-11-17 22:31:33 -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
06a76b26df Fixed content-type in channels::create + list response header 2020-11-07 21:01:09 -08:00
shockrah
c8a6aa204d User API changes to now use the new behavior for adding channels 2020-11-07 18:27:14 -08:00
shockrah
f9bc6b3dc9 channels modules have newly updated list endpoints
/channels/create requires a rework however
2020-11-03 23:16:24 -08:00
shockrah
7a093c1fbc new delete_channel endpoint handler
* to be tested
2020-11-02 00:12:16 -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