Move creator into events structure
This commit is contained in:
@@ -23,7 +23,7 @@ export const GET: RequestHandler = async ({ url }) => {
|
|||||||
const html = `
|
const html = `
|
||||||
<script>
|
<script>
|
||||||
localStorage.setItem('gmail_refresh_token', ${JSON.stringify(refreshToken)});
|
localStorage.setItem('gmail_refresh_token', ${JSON.stringify(refreshToken)});
|
||||||
location = '/private/creator';
|
location = '/private/events/creator';
|
||||||
</script>`;
|
</script>`;
|
||||||
return new Response(html, { headers: { 'Content-Type': 'text/html' } });
|
return new Response(html, { headers: { 'Content-Type': 'text/html' } });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
href="/private/creator"
|
href="/private/events/creator"
|
||||||
class="fixed bottom-6 left-1/2 -translate-x-1/2 z-50 bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-8 rounded-full shadow-none border border-gray-300"
|
class="fixed bottom-6 left-1/2 -translate-x-1/2 z-50 bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-8 rounded-full shadow-none border border-gray-300"
|
||||||
>
|
>
|
||||||
New Event
|
New Event
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
JSON.stringify({ event, participants, email })
|
JSON.stringify({ event, participants, email })
|
||||||
);
|
);
|
||||||
// Redirect with the variable name as a query parameter
|
// Redirect with the variable name as a query parameter
|
||||||
goto(`/private/creator/finish?data=${encodeURIComponent(varName)}`);
|
goto(`/private/events/creator/finish?data=${encodeURIComponent(varName)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user