fix(fronted): rename api docs page, fix clicking on nav logging you out

This commit is contained in:
MiniDigger | Martin 2023-01-07 21:49:40 +01:00
parent bf255d4a2b
commit 81e9088119
4 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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));