Commit Graph

55 Commits

Author SHA1 Message Date
LilleBRG
c9155d582b no errors after merge. update database please 2025-03-31 15:49:35 +02:00
LilleBRG
db023ac84e Merge branch 'master' of git.reim.ar:ReiMerc/temperature-alarm 2025-03-31 14:49:34 +02:00
Jeas0001
6cb36947cb Made the datetime optional 2025-03-31 11:16:16 +02:00
Jeas0001
668b29c068 Undid last commit from me 2025-03-31 10:50:21 +02:00
Jeas0001
d9205d425c Datetime ranged have any logs 2025-03-31 10:48:20 +02:00
Jeas0001
9dc19efd83 Removed unnessesary usings and added a datetimerange for getting logs 2025-03-31 10:39:07 +02:00
Jeas0001
f6e2c8f450 Gets userId from the jwttoken 2025-03-31 09:19:50 +02:00
LilleBRG
8202885870 devices half made 2025-03-27 22:17:45 +01:00
b8bb86edca
Fix JWT bearer authentication 2025-03-27 10:47:31 +01:00
Jeas0001
8ad863b781 Added securityDefinition and requirements 2025-03-27 10:22:46 +01:00
Jeas0001
46de83dc42 RefreshToken is made 2025-03-27 10:17:25 +01:00
Jeas0001
edc195b234 Fixed AMQPPublish and split the code into more functions and added Refresh token to Usermodel 2025-03-27 09:48:08 +01:00
Jeas0001
998cb90acc Changed the name of the publisher 2025-03-26 14:28:20 +01:00
Jeas0001
47797d18a0 Made AMQPPush for pushing the device limits to RabbitMQ and consume after 1 hour 2025-03-26 13:14:12 +01:00
Jeas0001
6f311fabd4 Comments 2025-03-26 12:14:42 +01:00
LilleBRG
a3f3d8f861 changes to updateuser, added logout button 2025-03-25 16:11:14 +01:00
LilleBRG
f42dcd743a profile gets data from db, changes to edituser 2025-03-25 14:24:36 +01:00
Jeas0001
60c0fc9475 Merge branch 'master' of git.reim.ar:ReiMerc/temperature-alarm 2025-03-25 13:15:52 +01:00
Jeas0001
507e156f17 Some comment in AMQPReciever, AMQPReciever and DBAccess 2025-03-25 13:15:42 +01:00
90cbf7ae81
Fix listening for AMQP messages, remove test console app 2025-03-25 12:54:52 +01:00
Jeas0001
fccea25296 Merge branch 'Jeppe' 2025-03-25 10:51:20 +01:00
Jeas0001
d289f28e93 AMQP set up and port is gotten from appsettings now 2025-03-25 10:50:03 +01:00
b943ad5f97
Fix dockerfile and add exec perms to deploy script 2025-03-25 09:40:06 +01:00
Jeas0001
97091c1a5c Authorize turned back on was off for debug purpose 2025-03-25 09:25:09 +01:00
Jeas0001
95d3c51543 Deleted some things that did not merge properly 2025-03-24 13:14:07 +01:00
Jeas0001
1f5515ac88 Merging Jeppe branch into master 2025-03-24 13:10:07 +01:00
Jeas0001
837f10037d Mqtt works at the same time as api 2025-03-24 13:02:39 +01:00
Jeas0001
428e187aa4 removed unnesesary using 2025-03-24 12:28:45 +01:00
Jeas0001
80981e8786 Hentet en nuget pakke 2025-03-24 12:14:26 +01:00
Jeas0001
c85047a57d Test 2025-03-24 12:03:33 +01:00
Jeas0001
d711134e7f staged 2025-03-24 12:00:18 +01:00
Jeas0001
2d7e80b3a1 Mqttreciever 2025-03-24 12:00:04 +01:00
Jeas0001
4bcdc99c8b Updated so deleteUser gives the correct answer back in dbAccess and checks if the user could be saved to the db 2025-03-24 10:02:46 +01:00
007c0e093c Merge pull request 'Jeppe' (#2) from Jeppe into master
Reviewed-on: #2
2025-03-24 08:45:54 +00:00
Jeas0001
1d3f929986 Added userid to the route for get devices 2025-03-24 09:43:15 +01:00
Jeas0001
edb5f9f3bc devicelogic er blevet scoped 2025-03-20 14:33:39 +01:00
Jeas0001
db2df2460f Middle logic maybe done 2025-03-20 14:16:10 +01:00
403882f40f chart at startup, mqtt receiver receives 2025-03-20 14:10:29 +01:00
Jeas0001
1d8c23703f Dependency injektion af dbaccess og udvidet healthController og fikset login 2025-03-20 11:23:16 +01:00
Jeas0001
f1f5a45232 Possible to login with email or username and added api/ back to the routes 2025-03-20 10:03:42 +01:00
Jeas0001
1d4e17dcef Merge branch 'master' of git.reim.ar:ReiMerc/temperature-alarm 2025-03-20 09:48:08 +01:00
Jeas0001
743b3d6941 Removed api/ from route 2025-03-20 09:46:15 +01:00
Jeas0001
928c4e7a42 Authorize sat op og lavet en healthcontroller 2025-03-20 09:35:38 +01:00
d21a759ef4
Use correct DBContext class 2025-03-19 14:33:11 +01:00
9b2b65a152
Fix errors on prod 2025-03-19 14:06:56 +01:00
Jeas0001
3ffd8d23a0 Migration works 2025-03-19 13:42:30 +01:00
Jeas0001
05f09e57ff JWT tokens til når du logger ind og passwword bliver hashet nu 2025-03-19 13:22:39 +01:00
5201e6e474
Run migrations on startup 2025-03-19 13:19:14 +01:00
Jeas0001
bb8e0f42df Moved models into the api project 2025-03-19 09:57:09 +01:00
Jeas0001
e0a69c4828 All api endpoints done for now 2025-03-19 09:45:50 +01:00