test & prod profiles toegevoegd + refactoring

This commit is contained in:
2025-03-15 18:18:14 +01:00
parent acd957f0da
commit adfe4dcbc2
4 changed files with 12 additions and 6 deletions

View File

@@ -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>

View File

@@ -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> {
}

View File

@@ -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;

View File

@@ -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