mirror of
https://github.com/BradNut/TofuStack
synced 2025-09-08 17:40:26 +00:00
fixed api path error
This commit is contained in:
parent
b33590edad
commit
f5016aeb1a
5 changed files with 28 additions and 27 deletions
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"vitest.disableWorkspaceWarning": true
|
||||||
|
}
|
||||||
|
|
@ -32,7 +32,6 @@ services:
|
||||||
mailpit:
|
mailpit:
|
||||||
image: axllent/mailpit
|
image: axllent/mailpit
|
||||||
container_name: mailpit
|
container_name: mailpit
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- mailpit_data:/data
|
- mailpit_data:/data
|
||||||
ports:
|
ports:
|
||||||
|
|
|
||||||
44
render.yaml
44
render.yaml
|
|
@ -60,16 +60,16 @@ services:
|
||||||
name: data
|
name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
envVars:
|
envVars:
|
||||||
- key: MINIO_ROOT_USER
|
- key: MINIO_ROOT_USER
|
||||||
generateValue: true
|
generateValue: true
|
||||||
- key: MINIO_ROOT_PASSWORD
|
- key: MINIO_ROOT_PASSWORD
|
||||||
generateValue: true
|
generateValue: true
|
||||||
- key: HOST
|
- key: HOST
|
||||||
value: "0.0.0.0"
|
value: "0.0.0.0"
|
||||||
- key: PORT
|
- key: PORT
|
||||||
value: 9000
|
value: 9000
|
||||||
- key: CONSOLE_PORT
|
- key: CONSOLE_PORT
|
||||||
value: 9090
|
value: 9090
|
||||||
# Uncomment the following key/value pair if you are removing the
|
# Uncomment the following key/value pair if you are removing the
|
||||||
# 'minio-console' web service
|
# 'minio-console' web service
|
||||||
# - key: MINIO_BROWSER
|
# - key: MINIO_BROWSER
|
||||||
|
|
@ -82,18 +82,18 @@ services:
|
||||||
dockerfilePath: ./Dockerfile.minio
|
dockerfilePath: ./Dockerfile.minio
|
||||||
autoDeploy: false
|
autoDeploy: false
|
||||||
envVars:
|
envVars:
|
||||||
- key: PORT
|
- key: PORT
|
||||||
value: 10000
|
value: 10000
|
||||||
- key: MINIO_HOST
|
- key: MINIO_HOST
|
||||||
fromService:
|
fromService:
|
||||||
name: minio-server
|
name: minio-server
|
||||||
type: web
|
type: web
|
||||||
property: host
|
property: host
|
||||||
- key: MINIO_CONSOLE_PORT
|
- key: MINIO_CONSOLE_PORT
|
||||||
fromService:
|
fromService:
|
||||||
name: minio-server
|
name: minio-server
|
||||||
type: web
|
type: web
|
||||||
envVarKey: CONSOLE_PORT
|
envVarKey: CONSOLE_PORT
|
||||||
|
|
||||||
databases:
|
databases:
|
||||||
- name: db
|
- name: db
|
||||||
|
|
|
||||||
|
|
@ -18,12 +18,12 @@ const apiClient: Handle = async ({ event, resolve }) => {
|
||||||
|
|
||||||
/* ----------------------------- Auth functions ----------------------------- */
|
/* ----------------------------- Auth functions ----------------------------- */
|
||||||
async function getAuthedUser() {
|
async function getAuthedUser() {
|
||||||
const { data } = await api.users.me.$get().then(parseApiResponse)
|
const { data } = await api.iam.me.$get().then(parseApiResponse)
|
||||||
return data && data.user;
|
return data && data.user;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getAuthedUserOrThrow(redirectTo = '/') {
|
async function getAuthedUserOrThrow(redirectTo = '/') {
|
||||||
const { data } = await api.users.me.$get().then(parseApiResponse);
|
const { data } = await api.iam.me.$get().then(parseApiResponse);
|
||||||
if (!data || !data.user) throw redirect(StatusCodes.TEMPORARY_REDIRECT, redirectTo);
|
if (!data || !data.user) throw redirect(StatusCodes.TEMPORARY_REDIRECT, redirectTo);
|
||||||
return data?.user;
|
return data?.user;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,5 +31,4 @@ export class WelcomeEmail implements Email {
|
||||||
</html>
|
</html>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Loading…
Reference in a new issue