Skip to content

Commit

Permalink
feat: make it works
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Sep 19, 2023
1 parent 1eba012 commit 8eb5155
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ out/

### VS Code ###
.vscode/
**/application-dev.yml
9 changes: 4 additions & 5 deletions src/main/kotlin/cc/unitmesh/cf/example/CodeQueryController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ import cc.unitmesh.cf.example.semantic.CodeSemanticWorkflow
import io.reactivex.rxjava3.core.Flowable
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import java.util.*

@RestController("/api/code-query")
class CodeQueryController(
val workflow: CodeSemanticWorkflow,
) {

@RestController
@RequestMapping("/api/code-query")
class CodeQueryController(val workflow: CodeSemanticWorkflow) {
@PostMapping
fun query(@RequestBody question: QuestionRequest): Flowable<WorkflowResult> {
val stage = CodeSemanticWorkflow.ANALYSIS
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/application.properties

This file was deleted.

2 changes: 2 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
elasticsearch:
uris: "localhost:9200"

0 comments on commit 8eb5155

Please sign in to comment.