Skip to content

Commit 301b0b2

Browse files
committed
api updates, profile page, new /me
1 parent 638e370 commit 301b0b2

File tree

7 files changed

+2099
-893
lines changed

7 files changed

+2099
-893
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

auth.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ <h2 style="margin:0 0 4px; font-size:22px; font-weight:500;">Link This Account</
711711

712712
try {
713713
const hash = CryptoJS.MD5(password).toString();
714-
const response = await fetch('https://social.rotur.dev/create_user', {
714+
const response = await fetch('https://api.rotur.dev/create_user', {
715715
method: 'POST',
716716
headers: {
717717
'Content-Type': 'application/json',
@@ -776,7 +776,7 @@ <h2 style="margin:0 0 4px; font-size:22px; font-weight:500;">Link This Account</
776776
});
777777

778778
async function requestAccount(username, password) {
779-
const response = await fetch(`https://social.rotur.dev/get_user_new?username=${username}&password=${password}`);
779+
const response = await fetch(`https://api.rotur.dev/get_user?username=${username}&password=${password}`);
780780
const json = await response.json();
781781
if (json.error) {
782782
// Check if it's a TOS error with a token
@@ -821,7 +821,7 @@ <h2 style="margin:0 0 4px; font-size:22px; font-weight:500;">Link This Account</
821821
renderAccountList();
822822

823823
const urlParams = new URLSearchParams(window.location.search);
824-
return_to = urlParams.get('return_to') ?? sessionStorage.getItem('rotur_return_to') ?? document.referrer;
824+
return_to = urlParams.get('return_to') ?? sessionStorage.getItem('rotur_return_to') ?? "https://rotur.dev/me";
825825
const linkMode = urlParams.get('link') === '1';
826826
const forceSignup = urlParams.get('signup') === '1';
827827
// Capture system parameter (default already set to 'rotur')

inventory-manager.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ <h2 id="single-item-name" class="single-item-name"></h2>
747747
let userCurrency = 0;
748748
let allMarketplaceItems = [];
749749
let currentSingleItem = null;
750-
const API_BASE_URL = 'https://social.rotur.dev';
750+
const API_BASE_URL = 'https://api.rotur.dev';
751751

752752
// DOM elements
753753
const loginSection = document.getElementById('login-section');

key-manager.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ <h4>Key Management</h4>
519519
// Global variables
520520
let authToken = '';
521521
let currentUser = '';
522-
const API_BASE_URL = 'https://social.rotur.dev';
522+
const API_BASE_URL = 'https://api.rotur.dev';
523523

524524
// DOM elements
525525
const loginSection = document.getElementById('login-section');

0 commit comments

Comments
 (0)