mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-04 04:35:19 +02:00
fixes
This commit is contained in:
parent
a6b1d421cc
commit
6dfcf8659a
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
Django==5.0.6
|
Django==5.0.7
|
||||||
dj-rest-auth @ git+https://github.com/iMerica/dj-rest-auth.git@master
|
dj-rest-auth @ git+https://github.com/iMerica/dj-rest-auth.git@master
|
||||||
djangorestframework>=3.15.2
|
djangorestframework>=3.15.2
|
||||||
djangorestframework-simplejwt==5.3.1
|
djangorestframework-simplejwt==5.3.1
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
import { redirect } from '@sveltejs/kit';
|
import { redirect } from '@sveltejs/kit';
|
||||||
import type { PageServerLoad, RequestEvent } from '../$types';
|
import type { PageServerLoad, RequestEvent } from '../$types';
|
||||||
import { PUBLIC_SERVER_URL } from '$env/static/public';
|
import { PUBLIC_SERVER_URL } from '$env/static/public';
|
||||||
const endpoint = PUBLIC_SERVER_URL || 'http://localhost:8000';
|
|
||||||
export const load: PageServerLoad = async (event: RequestEvent) => {
|
export const load: PageServerLoad = async (event: RequestEvent) => {
|
||||||
|
const endpoint = PUBLIC_SERVER_URL || 'http://localhost:8000';
|
||||||
if (!event.locals.user || !event.cookies.get('auth')) {
|
if (!event.locals.user || !event.cookies.get('auth')) {
|
||||||
return redirect(302, '/login');
|
return redirect(302, '/login');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue