@@ -68,7 +68,7 @@ pub async fn upload_file(
68
68
69
69
#[ utoipa:: path(
70
70
tag = "Identity" ,
71
- path = "/identity/detail" ,
71
+ path = "/api/ identity/detail" ,
72
72
description = "Returns the current identity" ,
73
73
responses(
74
74
( status = 200 , description = "The current identity data" , body = IdentityToReturn )
@@ -87,7 +87,7 @@ pub async fn return_identity(state: &State<ServiceContext>) -> Result<Json<Ident
87
87
88
88
#[ utoipa:: path(
89
89
tag = "Identity" ,
90
- path = "/identity/create" ,
90
+ path = "/api/ identity/create" ,
91
91
description = "Creates a new identity with given data" ,
92
92
responses(
93
93
( status = 200 , description = "The identity has been created" )
@@ -125,7 +125,7 @@ pub async fn create_identity(
125
125
126
126
#[ utoipa:: path(
127
127
tag = "Identity" ,
128
- path = "/identity/change" ,
128
+ path = "/api/ identity/change" ,
129
129
description = "Updates the identity with given data" ,
130
130
responses(
131
131
( status = 200 , description = "The identity has been updated" )
@@ -172,7 +172,7 @@ pub async fn change_identity(
172
172
173
173
#[ utoipa:: path(
174
174
tag = "Identity" ,
175
- path = "/identity/active" ,
175
+ path = "/api/ identity/active" ,
176
176
description = "Returns the currently active identity data" ,
177
177
responses(
178
178
( status = 200 , description = "The identity that is currently active" , body = SwitchIdentity )
@@ -193,7 +193,7 @@ pub async fn active(state: &State<ServiceContext>) -> Result<Json<SwitchIdentity
193
193
194
194
#[ utoipa:: path(
195
195
tag = "Identity" ,
196
- path = "/identity/switch" ,
196
+ path = "/api/ identity/switch" ,
197
197
description = "Switches the currently active identity to the given identity" ,
198
198
responses(
199
199
( status = 200 , description = "The active identity has been switched" )
@@ -234,7 +234,7 @@ pub async fn switch(
234
234
235
235
#[ utoipa:: path(
236
236
tag = "Identity" ,
237
- path = "/identity/seed/backup" ,
237
+ path = "/api/ identity/seed/backup" ,
238
238
description = "Returns the seed phrase key backup of current private key" ,
239
239
responses(
240
240
( status = 200 , description = "The seed phrase of the current private key" , body = SeedPhrase )
@@ -248,7 +248,7 @@ pub async fn get_seed_phrase(state: &State<ServiceContext>) -> Result<Json<SeedP
248
248
249
249
#[ utoipa:: path(
250
250
tag = "Identity" ,
251
- path = "/identity/seed/recover" ,
251
+ path = "/api/ identity/seed/recover" ,
252
252
description = "Restores a private key from the given seed phrase backup" ,
253
253
responses(
254
254
( status = 200 , description = "Private key has been recovered from seed" )
@@ -269,7 +269,7 @@ pub async fn recover_from_seed_phrase(
269
269
270
270
#[ utoipa:: path(
271
271
tag = "Identity" ,
272
- path = "/identity/backup" ,
272
+ path = "/api/ identity/backup" ,
273
273
description = "Creates an encrypted backup of all the data for current identity and returns the backup file" ,
274
274
responses(
275
275
( status = 200 , description = "The encrypted backup that has been created" )
@@ -288,7 +288,7 @@ pub async fn backup_identity(state: &State<ServiceContext>) -> Result<BinaryFile
288
288
#[ utoipa:: path(
289
289
post,
290
290
tag = "Identity" ,
291
- path = "/identity/restore" ,
291
+ path = "/api/ identity/restore" ,
292
292
request_body( content_type = "multipart/form-data" , content = UploadFileForm , description = "Backup file to upload" ) ,
293
293
responses(
294
294
( status = 200 , description = "Indentity has been restored" )
0 commit comments