Skip to content

Commit 6126288

Browse files
committed
feat: move api endpoints
1 parent fae4c7e commit 6126288

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

website-v3/src/components/Scripts.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const { config, domain } = ctx;
228228

229229
button.addEventListener('click', () => {
230230
if (groupId) {
231-
fetch('/api/tabs-sync', {
231+
fetch('/api/docs.page/tabs-sync', {
232232
method: 'POST',
233233
headers: { 'Content-Type': 'application/json' },
234234
body: JSON.stringify({ owner, repository, ref, domain, groupId, buttonId }),

website-v3/src/components/ThemeToggle.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { MoonIcon, SunIcon } from './icons';
3535
// Toggle the icons
3636
toggleElements();
3737
// Update the theme via server and return a cookie
38-
fetch('/api/theme', {
38+
fetch('/api/docs.page/theme', {
3939
method: 'POST',
4040
headers: {
4141
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)