Skip to content

Commit

Permalink
feat: cors
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-segning committed Jul 26, 2024
1 parent 4c00c63 commit ae2fe0f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ jobs:
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
tag: 0.1.0
tag: 0.1.1
body: |
Release ${{ github.ref }}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = 'com.ssegning.lynx'
version = '0.1.0'
version = '0.1.1'

java {
sourceCompatibility = '21'
Expand Down
2 changes: 1 addition & 1 deletion frontend
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
import com.ssegning.lynx.lynxbackend.service.FileUpload;
import lombok.RequiredArgsConstructor;
import org.springframework.core.io.Resource;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@CrossOrigin
@RestController
@RequestMapping
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
import com.ssegning.lynx.lynxbackend.model.Scan;
import com.ssegning.lynx.lynxbackend.service.ScanService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;
import java.util.List;
import java.util.Optional;

@CrossOrigin
@RestController
@RequestMapping
@RequiredArgsConstructor
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/application-mongo.properties

This file was deleted.

10 changes: 10 additions & 0 deletions src/main/resources/application-mongo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
spring:
data:
mongodb:
host: localhost
port: 27017
database: lynxScannerMongodb
autoconfigure:
exclude:
- org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration
- org.springframework.boot.autoconfigure.data.jdbc.JdbcRepositoriesAutoConfiguration

0 comments on commit ae2fe0f

Please sign in to comment.