refactor(api): ♻️ Change route names, improve API endpoints to be more consistent with Mastodon API

This commit is contained in:
Jesse Wierzbinski 2024-05-16 15:49:59 -10:00
parent a6eb826b04
commit b1216a43f2
No known key found for this signature in database
19 changed files with 785 additions and 375 deletions

View file

@ -1,4 +1,4 @@
import { config } from "config-manager";
export const oauthRedirectUri = (issuer: string) =>
new URL(`/oauth/callback/${issuer}`, config.http.base_url).toString();
new URL(`/oauth/sso/${issuer}/callback`, config.http.base_url).toString();