test & prod profiles toegevoegd + refactoring
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -84,6 +84,10 @@
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-security</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-smallrye-openapi</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>at.favre.lib</groupId>
|
||||
<artifactId>bcrypt</artifactId>
|
||||
|
||||
@@ -2,13 +2,8 @@ package nl.veenm.paypoint.repository;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheRepository;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
import nl.veenm.paypoint.domain.Appointment;
|
||||
import nl.veenm.paypoint.domain.Company;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
@ApplicationScoped
|
||||
public class CompanyRepository implements PanacheRepository<Company> {
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package nl.veenm.paypoint.resource;
|
||||
|
||||
import jakarta.annotation.security.PermitAll;
|
||||
import jakarta.annotation.security.RolesAllowed;
|
||||
import jakarta.inject.Inject;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.POST;
|
||||
|
||||
@@ -13,6 +13,9 @@ quarkus.http.cors.origins=${CORS_ORIGINS}
|
||||
quarkus.http.cors.methods=GET,POST,OPTIONS,DELETE,PUT
|
||||
quarkus.http.root-path=/api
|
||||
|
||||
quarkus.smallrye-openapi.path=/openapi
|
||||
quarkus.swagger-ui.always-include=true
|
||||
|
||||
# Mailer configuratie
|
||||
quarkus.mailer.from=${MAILER_FROM}
|
||||
quarkus.mailer.host=${MAILER_HOST}
|
||||
@@ -45,6 +48,11 @@ smallrye.jwt.new-token.lifespan=3600
|
||||
#quarkus.log.category."io.quarkus.rest".level=DEBUG
|
||||
|
||||
|
||||
%test.quarkus.smallrye-openapi.path=/openapi
|
||||
%test.quarkus.swagger-ui.always-include=true
|
||||
|
||||
%prod.quarkus.swagger-ui.always-include=false
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user