Create admin page

This commit is contained in:
Takeshi Kimata
2024-05-26 20:50:23 +09:00
parent 7d071303dd
commit a573358a85
19 changed files with 330 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ async function signUp(newUser: UserType) {
body: JSON.stringify(newUser),
};
const url = `${apiServer}/auth/signup`;
const url = `${apiServer}/users/signup`;
try {
const response = await fetch(url, fetchOptions);
@@ -36,7 +36,7 @@ async function signIn(signInUser: UserType) {
body: JSON.stringify(signInUser),
};
const url = `${apiServer}/auth/signin`;
const url = `${apiServer}/users/signin`;
try {
const response = await fetch(url, fetchOptions);

View File

@@ -4,6 +4,7 @@ export default function Page(params: { locale: string }) {
const t = useTranslations('Auth');
const messages = {
yourProjects: t('your_projects'),
moveToAdmin: t('move_to_admin'),
};
return <AccountPage messages={messages} locale={params.locale} />;