lot of changes on someday
This commit is contained in:
@ -10,6 +10,7 @@ import net.shyshkin.study.fullstack.supportportal.backend.repository.ProfessorRe
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.amazonaws.services.secretsmanager.model.ResourceNotFoundException;
|
||||
|
||||
@ -7,7 +7,7 @@ import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
import org.mapstruct.Named;
|
||||
|
||||
@Mapper
|
||||
@Mapper( )
|
||||
public interface ProfessorMapper {
|
||||
|
||||
// @Mapping(target = "professorId", ignore = true) // Auto-generated
|
||||
@ -28,5 +28,6 @@ public interface ProfessorMapper {
|
||||
default String workingStatusToString(WorkingStatus status) {
|
||||
return status == null ? null : status.name();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -49,7 +49,7 @@ spring:
|
||||
|
||||
|
||||
app:
|
||||
public-urls: /user/login,/user/register,/user/*/profile-image/**,/professors,/professors/**
|
||||
public-urls: /user/login,/user/register,/user/*/profile-image/**,/professors,/professors/**,/api/posts,/api/posts/*,/professor,/professor/*,/api/events,/api/events/*
|
||||
cors:
|
||||
allowed-origins: http://localhost:4200,https://localhost:4200,http://art-support-portal.s3-website.eu-north-1.amazonaws.com,http://portal.shyshkin.net,*
|
||||
jwt:
|
||||
|
||||
Reference in New Issue
Block a user