diff --git a/src/main/java/com/alura/aluraflixapi/infraestructure/railway/RailwayConfig.java b/src/main/java/com/alura/aluraflixapi/infraestructure/railway/RailwayConfig.java new file mode 100644 index 0000000..913d972 --- /dev/null +++ b/src/main/java/com/alura/aluraflixapi/infraestructure/railway/RailwayConfig.java @@ -0,0 +1,13 @@ +package com.alura.aluraflixapi.infraestructure.railway; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class RailwayConfig { + + @Bean + String getPort(){ + return System.getenv("PORT"); + } +}