Skip to content

Commit

Permalink
Merge branch 'main' into test-deploy-middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Dec 13, 2024
2 parents 0a54838 + 9c7752c commit 092c8b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.bind.annotation.*;


@CrossOrigin(origins = "*", allowCredentials = "false")
@RestController
@RequestMapping("/api")
@Slf4j
Expand Down
2 changes: 1 addition & 1 deletion frontend/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const ImageToText = async (
labels: JSON.stringify(fieldNames),
});

const imageToTextURL = `${middlewareURL}api/image_file_to_text/`;
const imageToTextURL = `${middlewareURL}api/image_file_to_text`;
try {
const response = await fetch(imageToTextURL, {
method: "POST",
Expand Down

0 comments on commit 092c8b4

Please sign in to comment.