diff options
author | Vitaly Takmazov | 2024-10-10 23:39:02 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-10-10 23:39:02 +0300 |
commit | ce1361920f1b6574e9328f47a016bf29f40ae9d6 (patch) | |
tree | aa4283962385b5e6730e05a12588e15c725389e6 /src | |
parent | 641c5b59ead5a741ae4b6c785f861619ba0aa340 (diff) |
`/api/v2/instance` is not served on legacy server anymore
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/config/SecurityConfig.java | 1 | ||||
-rw-r--r-- | src/main/java/com/juick/www/api/Mastodon.java | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/juick/config/SecurityConfig.java b/src/main/java/com/juick/config/SecurityConfig.java index 6e9afa42..a93a4a5c 100644 --- a/src/main/java/com/juick/config/SecurityConfig.java +++ b/src/main/java/com/juick/config/SecurityConfig.java @@ -206,7 +206,6 @@ public class SecurityConfig { "/api/inbox", "/api/events", "/api/u/", "/u/**", "/n/**", "/api/info/**", "/api/v1/apps", "/api/v1/instance", - "/api/v2/instance", "/api/nodeinfo/2.0", "/oauth/**") .permitAll() .anyRequest().hasAnyAuthority("SCOPE_write", "ROLE_USER")) diff --git a/src/main/java/com/juick/www/api/Mastodon.java b/src/main/java/com/juick/www/api/Mastodon.java index 220963c1..ca3687e7 100644 --- a/src/main/java/com/juick/www/api/Mastodon.java +++ b/src/main/java/com/juick/www/api/Mastodon.java @@ -164,7 +164,7 @@ public class Mastodon { ) { } - @GetMapping({"/api/v1/instance", "/api/v2/instance"}) + @GetMapping("/api/v1/instance") public Instance getInstance() { return new Instance(domain, "Microblogging service", "Juick", "2.x","support@juick.com"); } |