Docker update
This commit is contained in:
@ -32,7 +32,7 @@ export interface Blog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class BlogService {
|
class BlogService {
|
||||||
private apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8080';
|
private apiBaseUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080';
|
||||||
|
|
||||||
async getAllBlogs(): Promise<Blog[]> {
|
async getAllBlogs(): Promise<Blog[]> {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -39,7 +39,7 @@ export interface JobApplicationData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class CareerService {
|
class CareerService {
|
||||||
private apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8080';
|
private apiBaseUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080';
|
||||||
|
|
||||||
async getActiveJobs(): Promise<Job[]> {
|
async getActiveJobs(): Promise<Job[]> {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -46,7 +46,7 @@ export interface CourseApplicationData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class EducationService {
|
class EducationService {
|
||||||
private apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8080';
|
private apiBaseUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080';
|
||||||
|
|
||||||
async getActiveCourses(): Promise<Course[]> {
|
async getActiveCourses(): Promise<Course[]> {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -25,7 +25,7 @@ export interface ApiEvent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class EventService {
|
class EventService {
|
||||||
private apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8080';
|
private apiBaseUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080';
|
||||||
|
|
||||||
async getAllEvents(): Promise<Event[]> {
|
async getAllEvents(): Promise<Event[]> {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -5,7 +5,7 @@ export interface FileUploadResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class FileUploadService {
|
class FileUploadService {
|
||||||
private apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8080';
|
private apiBaseUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080';
|
||||||
|
|
||||||
async uploadFile(file: File): Promise<FileUploadResponse> {
|
async uploadFile(file: File): Promise<FileUploadResponse> {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
|||||||
@ -19,7 +19,7 @@ export interface UpcomingEvent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class UpcomingEventsService {
|
class UpcomingEventsService {
|
||||||
private apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8080';
|
private apiBaseUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080';
|
||||||
|
|
||||||
async getActiveUpcomingEvents(): Promise<UpcomingEvent[]> {
|
async getActiveUpcomingEvents(): Promise<UpcomingEvent[]> {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user