From 9d02035a13bbdb69c62b9447e5c5c4cfbffd8049 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 24 Dec 2022 03:21:09 +0300 Subject: Revert "Drop unused API endpoint" This reverts commit ec4760936d609f4e269c028468a53bc1d60878aa. --- src/main/java/com/juick/www/api/activity/Profile.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); + } } -- cgit v1.2.3