Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LINKER-X] Cralwer모듈 추가 #26

Merged
merged 1 commit into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dependencies {
runtimeOnly(project(":storage"))
runtimeOnly(project(":crawler"))

implementation(project(":domain"))
implementation(project(":common:error"))
Expand Down
13 changes: 13 additions & 0 deletions crawler/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
dependencies {
implementation(project(":domain"))
implementation(project(":common:error"))
implementation(project(":common:enums"))

implementation 'org.springframework.boot:spring-boot-starter-web'
}
bootJar{
enabled = false
}
jar{
enabled = true
}
15 changes: 15 additions & 0 deletions crawler/src/main/java/com/imlinker/crawler/CrawlerController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.imlinker.crawler;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/crawler")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

endpoint에 api를뺴야하나 고민이긴하네요 ㅋㅋ

public class CrawlerController {

@PostMapping
public String crawling() {
return "test";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.imlinker.crawler;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class CrawlerApplicationTests {

@Test
void contextLoads() {}
}
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ pluginManagement {

rootProject.name = 'linker'
include(":core-api")
include(":crawler")

include(":domain")
include(":storage")

Expand Down
Loading