Move creator into events structure

This commit is contained in:
Roman Krček
2025-06-27 22:39:54 +02:00
parent 4d8e65f280
commit fe688de59c
12 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ export const GET: RequestHandler = async ({ url }) => {
const html = `
<script>
localStorage.setItem('gmail_refresh_token', ${JSON.stringify(refreshToken)});
location = '/private/creator';
location = '/private/events/creator';
</script>`;
return new Response(html, { headers: { 'Content-Type': 'text/html' } });
} catch (err) {

View File

@@ -42,7 +42,7 @@
</div>
<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"
>
New Event

View File

@@ -12,7 +12,7 @@
JSON.stringify({ event, participants, email })
);
// 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>