aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UserController.kt
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-04 18:27:07 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-04 18:27:07 -0600
commitae27feda705444df46d857be6983d73f12ead4ef (patch)
tree632731d8d05a0609b3859ba5f081c5a343ba1518 /shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UserController.kt
parentb609ee1dc0ffe2a4c6acf2d08e13c46a7ded5fe1 (diff)
downloadetbsa-trackermap-mobile-ae27feda705444df46d857be6983d73f12ead4ef.tar.gz
etbsa-trackermap-mobile-ae27feda705444df46d857be6983d73f12ead4ef.tar.bz2
etbsa-trackermap-mobile-ae27feda705444df46d857be6983d73f12ead4ef.zip
Added first controllers (unreviewed and untested)
Diffstat (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UserController.kt')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UserController.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UserController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UserController.kt
new file mode 100644
index 0000000..a398185
--- /dev/null
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UserController.kt
@@ -0,0 +1,10 @@
+package mx.trackermap.TrackerMap.controllers
+
+import mx.trackermap.TrackerMap.client.apis.UsersApi
+import mx.trackermap.TrackerMap.client.models.User
+
+class UserController(private val usersApi: UsersApi) {
+ suspend fun updateUser(user: User) {
+ usersApi.usersPost(user)
+ }
+} \ No newline at end of file