Update frontend server address
This commit is contained in:
		| @@ -11,7 +11,7 @@ import com.iconplus.smartproc.model.response.RefreshTokenResponse; | ||||
| import com.iconplus.smartproc.service.authentication.*; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/authentication") | ||||
| public class AuthenticationController { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/bidang") | ||||
| public class BidangController { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/instansi") | ||||
| public class InstansiController { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/jabatan") | ||||
| public class JabatanController { | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/jenisanggaran") | ||||
| public class JenisAnggaranController { | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/jeniskontrak") | ||||
| public class JenisKontrakController { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/jenispengadaan") | ||||
| public class JenisPengadaanController { | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/lokasi") | ||||
| public class LokasiController { | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/metodepengadaan") | ||||
| public class MetodePengadaanController { | ||||
|   | ||||
| @@ -12,7 +12,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/metodepenyampaian") | ||||
| public class MetodePenyampaianController { | ||||
|   | ||||
| @@ -6,7 +6,7 @@ import com.iconplus.smartproc.repository.PermissionRepository; | ||||
| import com.iconplus.smartproc.service.permission.PutUpdatePermissionService; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/permission") | ||||
| public class PermissionController { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/roles") | ||||
| public class RolesController { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/strategipengadaan") | ||||
| public class StrategiPengadaanController { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/sumberdana") | ||||
| public class SumberDanaController { | ||||
|   | ||||
| @@ -12,7 +12,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/supplypositioningmatrix") | ||||
| public class SupplyPositioningMatrixController { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/unitinisiator") | ||||
| public class UnitInisiatorController { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import org.springframework.data.domain.PageRequest; | ||||
| import org.springframework.data.domain.Pageable; | ||||
| import org.springframework.web.bind.annotation.*; | ||||
|  | ||||
| @CrossOrigin(origins = "http://localhost:8080", allowCredentials = "true") | ||||
| @CrossOrigin(origins = "${fe.server}", allowCredentials = "true") | ||||
| @RestController | ||||
| @RequestMapping("/api/users") | ||||
| public class UsersController { | ||||
|   | ||||
| @@ -24,3 +24,6 @@ spring: | ||||
|       ddl-auto: update | ||||
|     database-platform: org.hibernate.dialect.PostgreSQLDialect | ||||
|     show-sql: true | ||||
|  | ||||
| fe: | ||||
|   server: http://localhost:8080 | ||||
		Reference in New Issue
	
	Block a user