shockrah
351a9ba30c
list channels and create channels behaving properly based on inputs, delete_channel not working just yet
2020-07-29 00:26:19 -07:00
shockrah
46403913a4
logging bad auth requests
2020-07-13 21:47:00 -07:00
shockrah
73f69cec48
channels list route passing proper input pass
2020-07-13 20:35:04 -07:00
shockrah
1810e5ebc8
removing unused enum members
2020-07-13 19:42:13 -07:00
shockrah
ef7eca3462
poc for insertion of new users
2020-07-12 15:09:03 -07:00
shockrah
a47f4c4c46
! admin update
...
removing and ignoring old + new things respectively
2020-07-04 19:39:04 -07:00
shockrah
5e21811b8d
converting route_join_invite_code to use new json Value types
2020-06-18 22:04:45 -07:00
shockrah
32c8619d93
moving http parameterization to its own module
2020-06-18 20:10:58 -07:00
shockrah
4985c7f07f
structures for members and badges
2020-06-17 12:37:37 -07:00
shockrah
7fa103b1dc
primary dispatcher to insert channels now built
...
parameter parsing functino was built for the primary dispatcher
New InsterableChannel structure added: mysql controls the id field for us
2020-06-03 00:08:35 -07:00
shockrah
8d149014e1
Added documentation to current code
...
Explaining why things are being done
2020-06-02 22:29:34 -07:00
shockrah
08e5b87ba4
Helper functionality
...
InviteRow now has some utilities built into it to help with translating values from various types needed throughout the codebase
+from_tuple -> because mysql is used to grab tuples before structs
+as_json_str -> because we respond primarily with json payloads
list_channels is considered a main entry point from the dispather and thus handles errors itself
2020-06-02 22:04:54 -07:00
shockrah
d2eb0597c3
new route regarding invite creation being built
2020-06-02 17:50:23 -07:00
shockrah
2400b89b12
added result return types to invites module functions
...
this lets us cut down on worrying about mysql errors
Mysql error responsibility is now the route dispatchers problem
Route dispatcher itself can easily dispatch to another handler
2020-06-02 17:05:14 -07:00
shockrah
d1cfc4284c
child calls from main_responder (see route_dipatcher + route handlers) now borrow a connection for the sql db
2020-06-02 03:25:11 -07:00
shockrah
19ad0eee9f
OpenAuth + Good both have the same kind of dispatcher response
...
route dispatcher work begins with dispatching to invites::join_invite_code
Fixed the non mutable ref borrowing in funcs that required mutable references like most that get called by route_dispatcher
2020-06-02 01:32:43 -07:00
shockrah
c7c6f530a0
handling ctrl-c
2020-06-02 00:50:09 -07:00
shockrah
9033c80369
Exhaustive response to various authentication failures
...
response route_dispatcher now guaranteed to fire on proper authentication only
2020-06-02 00:47:28 -07:00
shockrah
83576f1126
basic query string parser function used to generate hashmaps of parameters
...
This hashmap is then borrowed by child functions down to the route handlers themselves if they need it
2020-06-01 22:50:58 -07:00
shockrah
c1f8ebee1d
slight typo in parameters fixed
2020-06-01 22:25:21 -07:00
shockrah
b3289ca9bd
Basic router skeleton for freechat's new auth/dispatch model
2020-06-01 22:25:01 -07:00
shockrah
b007f57dfe
priv auth::blind_remove_session => impl not tested
...
pub auth::login => impl not tested
2020-05-19 19:36:29 -07:00
shockrah
883a007371
mod::rand_utils no longer exists
2020-05-17 16:05:21 -07:00
shockrah
11669840b2
Adding base64
2020-05-10 12:56:55 -07:00
shockrah
55a09b5e98
Removed static files route handlers as they'll never be used
...
added auth route
2020-05-06 22:22:40 -07:00
shockrah
306156407d
auth module use
able now
2020-05-06 01:46:06 -07:00
shockrah
a217c64666
Essential data now passable from server to client regarding channels
2020-03-31 17:15:01 -07:00
shockrah
3b3059e6d2
new get_user_list endpoint to well, get the list of online users
2020-03-17 22:27:10 -07:00
shockrah
a1402e79bb
router registration for get_voice_channels
2020-03-11 00:40:04 -07:00
shockrah
12dd244f9c
serde json used for testing purposes mainly
2020-03-08 22:53:43 -07:00
shockrah
89836449a1
createNewUser now returns a User(not payload::NewUser)
2020-03-08 19:50:47 -07:00
shockrah
54f5b1bbe1
new route to create users
...
still requires some kind of auth however
2020-03-07 21:51:54 -08:00
shockrah
8220f1f745
depracation of website module
2020-03-07 20:52:41 -08:00
shockrah
62fd63d3b5
invite generation cleaned and working
...
added a basic test for the fixed invite generation
2020-03-07 18:54:46 -08:00
shockrah
3a995fa469
removing users module for now because invites are getting reworked
...
a lot of structural changes are coming to how users are dealt with
2020-03-07 16:51:22 -08:00
shockrah
dd3acb5abe
Basic new user route with a sample test
...
Creating a payloads module as well
2020-02-07 14:57:44 -08:00
shockrah
d2c45761dd
invites usage route '/invite/<hash>' now usable
2020-02-05 17:45:12 -08:00
shockrah
c5461f16ad
main now matches against dotenv return val
...
main also returns a Result<(), i32>
2020-02-05 16:30:50 -08:00
shockrah
d54913a26a
registering routes for generating/usig invites
2020-02-04 00:25:59 -08:00
shockrah
0518a896d6
first steps into an invite system
2020-01-30 00:04:03 -08:00
shockrah
a3519e32a6
config issues are being ignored for now there are bigger things to deal with
2020-01-29 23:25:37 -08:00
shockrah
42090cd6b1
removed unwanted/needed stuff
2020-01-29 20:15:36 -08:00
shockrah
a142ea435b
ready to ready toml in ./configs/ for website at least
2020-01-04 16:25:18 -08:00
shockrah
6c88b04d6a
removed unsed struct which was moved to website.rs anyway
2020-01-04 01:35:56 -08:00
shockrahwow
a4f9a82477
more tests for jjs and more robust macro
2019-12-05 11:15:42 -08:00
shockrahwow
5a3899ffe2
all webroutes passing tests(yay!)
2019-11-27 23:46:06 -08:00
shockrahwow
ba166cf281
tests are more specific at this point yes i think so
2019-11-27 23:43:55 -08:00
shockrahwow
4a1be90cdf
better test coverage for static resources
2019-11-27 23:41:16 -08:00
shockrahwow
9bdeedb3d8
added routes for js and random media
...
removed login logic from website as the app is needed for that
2019-11-27 23:13:07 -08:00
shockrahwow
780e8b26bb
fixed typo and adding about page route in server
2019-11-27 21:28:04 -08:00