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
6abd2a9d52
feat: implement guild fetching with uuid
...
only returns if you are a member of the guild in question
2025-05-04 01:17:25 +02:00
f9e1e276f0
feat: implement guild creation
2025-05-04 01:16:57 +02:00
8883ff6400
feat: modify existing tables and add more tables for servers/chatting
2025-05-04 01:16:14 +02:00
8241196284
feat: add boilerplate rust files
2025-05-03 05:32:22 +02:00
34b984a1b5
feat: add tables for guilds, members, channels, messages, emojis and reactions
2025-05-03 05:31:35 +02:00
e29940d080
feat: only allow lowercase usernames
2025-05-03 03:04:07 +02:00
b530de8f52
fix: username regex
2025-05-03 02:20:37 +02:00
bcf857d6b2
refactor: flatten login function
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 20:32:13 +02:00
0d07af7d79
feat: style: return unauthorized when token isnt found and flatten function structure
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 19:26:37 +02:00
1d7cdf343b
feat: add users endpoint and add me and uuid under it
...
ci/woodpecker/push/build-and-publish Pipeline failed
Adds a users endpoint that returns all users on the server, will require instance permissions in future.
Place previous user requests under users to avoid having multiple endpoints.
2025-05-02 19:19:59 +02:00
c76fd73179
refactor: move regex code to mod.rs
2025-05-02 16:22:30 +02:00
0ccfa53746
docs: remove left over comment
2025-05-02 16:21:44 +02:00
97f7595cc5
style: cargo clippy and format
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 15:20:22 +02:00
481c2c3648
feat: use a logging library
...
ci/woodpecker/push/build-and-publish Pipeline was successful
gives us logs from actix and sqlx that otherwise arent exposed to us
2025-05-02 01:18:13 +02:00
22ab3d8a04
feat: add a way to revoke refresh_tokens using device_name
2025-05-01 20:19:39 +02:00
a89d705239
feat: use device_name in refresh_tokens table
2025-05-01 20:19:18 +02:00
c009d578a7
perf: optimize user fetching code
2025-05-01 20:18:39 +02:00
705abeb643
fix: fix password regex
...
this should probably be moved to its own function so we can change it on the fly
2025-05-01 20:17:59 +02:00
1646e60e65
fix: underscore unused config var in data
2025-05-01 20:15:38 +02:00
2864196584
perf: avoid cloning when checking access
2025-05-01 20:12:02 +02:00
7b86706793
perf: dont needlessly update uuid in token
2025-05-01 19:19:35 +02:00
aea640a64c
style: use the same response for login/register
2025-05-01 19:18:44 +02:00
0b25e3fb87
feat: add user lookup to api
...
lets you use an access token and a uuid to look up users on the instance
2025-05-01 07:06:58 +02:00
83872ed7a6
feat: add a function to check access token
...
lets me reuse something that will happen often instead of having to write it manually in every file
2025-05-01 07:06:14 +02:00
3c976d666d
fix: add NOT NULL to table keys
2025-05-01 07:05:31 +02:00
0b516a269d
fix: remove unused import
2025-05-01 07:04:56 +02:00
725a16d1f5
feat: integrate token authentication
2025-05-01 05:01:25 +02:00
1d0f8ecd00
feat: add refresh endpoint
2025-05-01 03:54:26 +02:00