A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
refactor(server): remove api prefix for all routes
Amruth Pillai43ce43ab5b37
diff --git a/client/next.config.js b/client/next.config.jsindex fa73440bb..6c7e46150 100644--- a/client/next.config.js+++ b/client/next.config.js@@ -20,7 +20,7 @@ const nextConfig = {return [{source: '/api/:path*',- destination: 'http://localhost:3100/api/:path*',+ destination: 'http://localhost:3100/:path*',},];}diff --git a/client/services/resume.ts b/client/services/resume.tsindex 9be37e43f..c60274c21 100644--- a/client/services/resume.ts+++ b/client/services/resume.ts@@ -71,7 +71,7 @@ export const fetchResumeByIdentifier = async ({slug,options = { secretKey: '' },}: FetchResumeByIdentifierParams) => {- const prefix = !isBrowser && process.env.NODE_ENV === 'development' ? 'http://localhost:3100/api' : '';+ const prefix = !isBrowser && process.env.NODE_ENV === 'development' ? 'http://localhost:3100' : '';const requestOptions = isEmpty(options.secretKey) ? {} : { params: { secretKey: options.secretKey } };return axios.get<Resume>(`${prefix}/resume/${username}/${slug}`, requestOptions).then((res) => res.data);diff --git a/server/src/main.ts b/server/src/main.tsindex 9928eff6d..a1366e87e 100644--- a/server/src/main.ts+++ b/server/src/main.ts@@ -9,10 +9,6 @@ import { AppModule } from './app.module';const bootstrap = async () => {const app = await NestFactory.create<NestExpressApplication>(AppModule);- // Prefix- const globalPrefix = 'api';- app.setGlobalPrefix(globalPrefix);-// Middlewareapp.enableShutdownHooks();app.use(cookieParser());