Implement backend for contact form with gateway integration

This commit is contained in:
2025-05-04 12:56:55 +02:00
parent a4f1a58f15
commit eb17e24511
21 changed files with 573 additions and 26 deletions

View File

@@ -0,0 +1,15 @@
package dev.rheinsw.gateway;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author Thatsaphorn Atchariyaphap
* @since 04.05.25
*/
@SpringBootApplication
public class GatewayApplication {
public static void main(String[] args) {
SpringApplication.run(GatewayApplication.class, args);
}
}

View File

@@ -1,11 +0,0 @@
package dev.rheinsw.gateway;
/**
* @author Thatsaphorn Atchariyaphap
* @since 04.05.25
*/
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}

View File

@@ -0,0 +1,23 @@
server:
port: 8080
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka/
spring:
application:
name: gateway
main:
web-application-type: reactive # Set the application type to reactive
cloud:
gateway:
routes:
- id: server
uri: lb://server
predicates:
- Path=/api/**
filters:
- StripPrefix=1