Commit Graph

38 Commits

Author SHA1 Message Date
0db9b76cad A new env variable
BACKEND_PORT for the port of the backend
2026-05-20 12:49:33 +02:00
6eb84d24e0 Archive
There is now an archive for tickets
2026-05-11 20:46:06 +02:00
535d940857 Removed unneeded imports 2026-05-10 10:26:16 +02:00
b87a6ff297 Docs.rs comments
Comments for generating the docs with cargo doc
2026-05-09 23:00:15 +02:00
26ac32db21 Backend initial admin setup 2026-05-09 17:33:14 +02:00
72f126c7da Some minor updates 2026-05-06 15:56:21 +02:00
331552b656 Some bugfixes 2026-05-04 16:45:39 +02:00
654b55a2a4 Put some api calls behind admin access 2026-05-02 19:15:40 +02:00
4a3d432e9a Fixed dependency mismatch 2026-05-02 18:42:52 +02:00
daeabad01e Packed both crates into one 2026-05-02 16:25:17 +02:00
d541cf18b1 Minor bugfixes 2026-05-02 10:23:25 +02:00
12c618f8dd Bux fix
Bug: when getting user by id, it would try to parse i16 to i32, type
changed
2026-05-01 18:12:24 +02:00
92fdb87cf0 Timezone now CET 2026-05-01 18:11:40 +02:00
fdd2e2a757 admin pages
Pages can now be locked behind admin privileges
2026-05-01 16:47:42 +02:00
e54be14526 When not logged in redirection to login page
Every page is locked behind a jwt, when it is not supplied neither other
pages not api calls will work
2026-05-01 16:18:15 +02:00
01c33f4a1d Avvailable from external source
pages and backend are now available from everywhere on the network
2026-04-29 14:21:55 +02:00
dac2d91213 Minor Bugfixes 2026-04-28 20:42:18 +02:00
6e4439e7fc Moved migrations into backend 2026-04-27 12:09:58 +02:00
f63131ebc7 User listing, deleting and updating 2026-04-25 14:33:02 +02:00
6c1c13e088 Cors layer added
header, origin and method limitations
2026-04-25 14:32:22 +02:00
834a0b7aa4 Get currnet user function 2026-04-25 13:33:41 +02:00
c4d374dbfe Added token validation 2026-04-25 13:21:31 +02:00
616efa5282 Fixed name mismatches and missing feature flag 2026-04-25 13:01:41 +02:00
0ce17fe805 Routes for auth handling
Also db and structs are now identical
2026-04-24 19:53:43 +02:00
51b6f89df2 Added user login, logout and creation functionality
Also minor changes to ticketing and AppState
2026-04-24 19:46:02 +02:00
fe04483e76 Updated user scheme
Forgot password and username
2026-04-24 17:49:52 +02:00
b94a94a28e Added Json Web Tokens
Also down migration for users
2026-04-24 17:49:32 +02:00
5e643503aa Added ticket edit functionality
As said, also minor change to database for testing purposes
2026-04-23 20:13:09 +02:00
b905ffc9b1 Changed enums to string
String is easyer to decode and the sendable data in the frontend will be
limited.
2026-04-23 16:51:21 +02:00
d890255631 Added router for routing requests
1. Duh
2. Also minor bugfix
2026-04-22 21:27:08 +02:00
20a0534c76 Added selecting specific ticket by id 2026-04-22 20:58:52 +02:00
8b34dac813 Added functions for adding, deleting and showing tickets
As said, functions got implemented. Also minor changes to migration
layout and dependencies
2026-04-22 20:40:28 +02:00
1725d2538c Added status Struct 2026-04-22 18:45:02 +02:00
a9e31e2fdf Implemeted Display trait for Category enum 2026-04-22 18:29:56 +02:00
94aea7ca27 Dependency Update
Updated deps and added serialize for the structs
2026-04-22 16:00:09 +02:00
bc0d3cb589 Added database connection
Code now connects to database and prints out errors. Also the ticket
table now includes a timestamp field
2026-04-22 15:50:08 +02:00
9972863232 Created Axum routing for localhost, also SQL Table structure
Added a axum router and listener for serving a web page on localhost.
Also a sql table structure was created with sqlx migrate for storing
tickets and users
2026-04-22 13:08:14 +02:00
ca54a03d07 Initialized Backend crate & deps
Created a backend binary and defined it's dependencies
2026-04-20 21:07:06 +02:00