mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-02-05 14:40:33 +08:00
fix(fronted): rename api docs page, fix clicking on nav logging you out
This commit is contained in:
parent
bf255d4a2b
commit
81e9088119
@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class ValidationService {
|
||||
|
||||
private static final Set<String> BANNED_ROUTES = Set.of("actuator", "admin", "api", "authors", "guidelines", "markdown","neworganization", "linkout", "logged-out", "new", "notifications", "null", "organizations", "privacy", "recommended", "settings", "staff", "terms", "tools", "tos", "undefined", "unread", "version");
|
||||
private static final Set<String> BANNED_ROUTES = Set.of("actuator", "admin", "api", "api-docs", "authors", "guidelines", "linkout", "logged-out", "markdown", "new", "neworganization", "notifications", "null", "organizations", "privacy", "recommended", "settings", "staff", "terms", "tools", "tos", "undefined", "unread", "version");
|
||||
private final HangarConfig config;
|
||||
|
||||
public ValidationService(final HangarConfig config) {
|
||||
|
@ -12,7 +12,7 @@ const { t } = useI18n();
|
||||
<router-link :to="{ name: 'guidelines' }" class="flex items-center rounded-md px-6 py-2" hover="text-primary-400 bg-primary-0">
|
||||
{{ t("hangar.footer.resourceGuidelines") }}
|
||||
</router-link>
|
||||
<router-link :to="{ name: 'api' }" class="flex items-center rounded-md px-6 py-2" hover="text-primary-400 bg-primary-0">
|
||||
<router-link :to="{ name: 'api-docs' }" class="flex items-center rounded-md px-6 py-2" hover="text-primary-400 bg-primary-0">
|
||||
{{ t("hangar.footer.api") }}
|
||||
</router-link>
|
||||
<a
|
||||
|
@ -109,7 +109,7 @@ function markNotificationRead(notification: HangarNotification) {
|
||||
}
|
||||
|
||||
function updateNavData() {
|
||||
useInternalApi<HangarUser>("/users/@me")
|
||||
useInternalApi<HangarUser>("users/@me")
|
||||
.catch((e) => handleRequestError(e))
|
||||
.then((user) => {
|
||||
return (authStore.user = unref(user));
|
||||
|
Loading…
Reference in New Issue
Block a user