95964e6fec
feat: add rough message sending
...
Doesnt get stored in psql and is currently done without any error handling
2025-05-15 23:43:39 +02:00
b23783dda3
feat: add auth and check if server/channel exists before opening ws connection
2025-05-15 17:54:10 +02:00
cb3c1ee6e4
refactor: ⚡ move websocket into existing webserver and folder structure
...
keeps things consistent and avoids having 2 webservers running under actix, can be reverted if its not desirable however i think this is the best option
2025-05-15 11:57:47 +00:00
79cfa25855
feat: add basic WebSocket server with echo handler
2025-05-15 11:54:20 +02:00
b499ff1cf8
style: use better function names in server
2025-05-12 17:18:55 +02:00
8fdbf8cc48
feat: add channel deletion
2025-05-12 00:09:17 +02:00
a5ec2704e6
style: get object from cache more cleanly
2025-05-12 00:08:21 +02:00
8935c2d496
feat: add way to fetch and join invites from /invites/{id}
2025-05-10 00:09:59 +02:00
c693e89853
feat: add fetching and making invites
2025-05-09 19:26:49 +02:00
773f4ca977
feat: add invites table
2025-05-09 19:26:13 +02:00
6a60834396
feat: add role creation/lookup
2025-05-08 22:16:21 +02:00
facfd95ed8
feat: implement functions for role struct
2025-05-08 22:14:41 +02:00
cb22bd8026
fix: import messages endpoint
2025-05-08 21:38:53 +02:00
daf61e0275
feat: implement message fetching
2025-05-08 19:53:35 +02:00
6374963e2f
feat: add structs.rs
...
Moved all server related structs into new file, added implementations to create, fetch, etc.
2025-05-08 13:21:54 +00:00
2e4860323e
feat: add post request to make channels
2025-05-08 00:54:21 +02:00
1aabe9e524
feat: add del_cache_key() function
2025-05-08 00:53:59 +02:00
ef5fc96d67
feat: add permissions enum
2025-05-08 00:34:08 +02:00
8821287cbe
fix: use correct query for channel_permissions in fetch_one()
2025-05-08 00:09:30 +02:00
1de99306a2
fix: add api/v1/servers/uuid/channels/uuid as a service
2025-05-08 00:03:18 +02:00
c79451a851
feat: allow fetching a single channel
2025-05-07 23:47:07 +02:00
caee16005d
feat: implement caching for channels endpoint
2025-05-07 23:46:55 +02:00
7ee500bf10
feat: add fetch_one() function to Channel struct
2025-05-07 23:46:40 +02:00
71f0cc14be
Merge branch 'main' into wip/messaging
2025-05-07 23:23:36 +02:00
3e65cffe39
fix: fix user uuid cache hits
2025-05-07 22:21:59 +02:00
9e56eec021
fix: remove unused imports
2025-05-07 21:22:38 +02:00
529ccd1b51
feat: use caching on user lookup
...
this needs to be deleted/expired on user update, we'll implement this when we get ways to "update" things like channels, servers and users
2025-05-07 20:33:23 +02:00
7ecc8c4270
feat: add redis caching
2025-05-07 20:32:32 +02:00
358a7f8336
fix: fetching of servers and channels by uuid
...
Co-authored-by: Radical <radical@radical.fun>
2025-05-07 19:01:10 +02:00
67af0c1e74
feat: add channel endpoint
2025-05-07 17:24:56 +02:00
ca63a2a13c
Merge pull request 'feat: implement cors' ( #10 ) from wip/cors into main
...
ci/woodpecker/push/build-and-publish Pipeline was successful
Reviewed-on: #10
Reviewed-by: Radical <radical@radical.fun>
2025-05-06 08:06:32 +00:00
c0f2948b76
feat: implement cors
2025-05-06 00:41:23 +02:00
cf1476f641
fix: correct merge error
2025-05-05 21:16:09 +02:00
135375f5b7
Merge pull request 'wip/username-regex' ( #6 ) from wip/username-regex into main
...
ci/woodpecker/push/build-and-publish Pipeline was successful
Reviewed-on: #6
Reviewed-by: Radical <radical@radical.fun>
2025-05-05 01:16:31 +00:00
77245e98c5
refactor: combine crypto.rs with utils.rs
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-04 23:50:38 +02:00
8a1467c26a
Merge branch 'main' into wip/username-regex
2025-05-04 21:41:40 +00:00
beb9fc10ba
feat: use new auth and convert to get request
2025-05-04 23:40:03 +02:00
fb76e6df08
feat: use new auth
2025-05-04 23:39:36 +02:00
ab5c85c4f5
fix: add numbers to username regex
2025-05-04 23:25:48 +02:00
c9d3b2cd12
Merge branch 'main' into wip/messaging
2025-05-04 23:24:10 +02:00
c61f96ffe7
feat: expire refresh_token immediately on unauthorized response
2025-05-04 23:02:17 +02:00
0f897dc0c6
feat: return refresh_token in cookie
2025-05-04 22:13:28 +02:00
ebb4286c08
refactor: move api to /api
...
serve api under /api
2025-05-04 22:13:05 +02:00
f12f81d584
fix: extract auth value
2025-05-04 21:30:33 +02:00
a3846a2620
fix: use correct header
2025-05-04 20:30:28 +02:00
cbf0131d14
feat: switch to headers for auth
2025-05-04 19:09:12 +02:00
6c706d973e
style: use created_at instead of created
2025-05-04 19:09:06 +02:00
aa865e2ed4
feat: add utils.rs
...
provides a function that extracts auth header from headers
2025-05-04 18:11:12 +02:00
776750578d
style: 🎨 restructure server folder
2025-05-04 06:25:01 +02:00
d72214eb56
fix: make server channel template not error out
2025-05-04 01:18:24 +02:00