blob: 1f39e6950deadbf91584abab334bca2af204c16c [file] [log] [blame]
Raverf79fdb62025-06-03 06:02:49 +00001package api;
2
3import org.springframework.boot.SpringApplication;
4import org.springframework.boot.autoconfigure.SpringBootApplication;
root59a69f82025-06-05 08:35:22 +00005import tracker.DataCaptureServer;
6import java.io.IOException;
Raverf79fdb62025-06-03 06:02:49 +00007
8@SpringBootApplication
9public class ApiApplication {
10 public static void main(String[] args) {
root59a69f82025-06-05 08:35:22 +000011
12 try{
13 DataCaptureServer.start();
14 }catch(IOException e){
15 System.out.println(e);
16 }
Raverf79fdb62025-06-03 06:02:49 +000017 SpringApplication.run(ApiApplication.class, args);
18 }
Raveraae06122025-06-05 08:13:35 +000019
20 // @Bean
21 // public WebMvcConfigurer corsConfigurer() {
22 // return new WebMvcConfigurer() {
23 // @Override
24 // public void addCorsMappings(CorsRegistry registry) {
25 // registry.addMapping("/**")
26 // .allowedOrigins("*")
27 // .allowedMethods("*")
28 // .allowedHeaders("*")
29 // .exposedHeaders(HttpHeaders.CONTENT_DISPOSITION);
30 // }
31 // };
32 // }
Raverf79fdb62025-06-03 06:02:49 +000033}