feat(backend): move internal endpoints to /api/internal

This commit is contained in:
sam 2024-10-02 00:15:14 +02:00
parent eac0a17473
commit 06f7019330
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
9 changed files with 39 additions and 27 deletions

View file

@ -41,7 +41,7 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
}
}
const urls = await serverRequest<AuthUrls>("POST", "/auth/urls");
const urls = await serverRequest<AuthUrls>("POST", "/auth/urls", { isInternal: true });
return json({
meta: { title: t("log-in.title") },
@ -57,6 +57,7 @@ export const action = async ({ request }: ActionFunctionArgs) => {
try {
const resp = await serverRequest<AuthResponse>("POST", "/auth/email/login", {
body: { email, password },
isInternal: true,
});
return redirect("/", {