Skip to content

Commit

Permalink
Change api URL prefix for studio
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpolman committed Oct 10, 2024
1 parent d271ba0 commit 28cc5b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/app/middlewares/checkJwt.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Request, Response, NextFunction } from 'express';
import { logger } from '../util/logger';
import { NextFunction, Request, Response } from 'express';
import AccountProxy from '../proxies/AccountProxy';
import { logger } from '../util/logger';

export const checkJwt = async (req: Request, res: Response, next: NextFunction) => {
const authHeader = req.headers.authorization;
Expand Down
2 changes: 1 addition & 1 deletion apps/studio/src/stores/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const useAuthStore = defineStore('auth', {
}

const url = new URL(API_URL);
url.pathname = `/v1${path}`;
url.pathname = path;
if (options?.params) {
for (const key in options.params) {
url.searchParams.append(key, options.params[key]);
Expand Down

0 comments on commit 28cc5b2

Please sign in to comment.