aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/api/activity
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-24 03:21:09 +0300
committerGravatar Vitaly Takmazov2022-12-24 03:21:09 +0300
commit9d02035a13bbdb69c62b9447e5c5c4cfbffd8049 (patch)
tree9b357e9ac3bda1742e89ebc400c7f9f2419a1a41 /src/main/java/com/juick/www/api/activity
parent2a858017b7d9a620d1083b69b7ca038c34a5ba89 (diff)
Revert "Drop unused API endpoint"
This reverts commit ec4760936d609f4e269c028468a53bc1d60878aa.
Diffstat (limited to 'src/main/java/com/juick/www/api/activity')
-rw-r--r--src/main/java/com/juick/www/api/activity/Profile.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/juick/www/api/activity/Profile.java b/src/main/java/com/juick/www/api/activity/Profile.java
index fb66400d..506f5ace 100644
--- a/src/main/java/com/juick/www/api/activity/Profile.java
+++ b/src/main/java/com/juick/www/api/activity/Profile.java
@@ -400,4 +400,9 @@ public class Profile {
}
return new ResponseEntity<>(CommandResult.fromString("Can not authenticate"), HttpStatus.UNAUTHORIZED);
}
+
+ @PostMapping(value = { "/u/", "/api/u/" }, produces = MediaType.APPLICATION_JSON_VALUE)
+ public User fetchUser(@RequestParam URI uri) {
+ return activityPubManager.actorToUser(uri);
+ }
}