File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
main/kotlin/io/realworld/app/web/controllers
kotlin/io/realworld/app/web/util Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class CommentController(private val commentService: CommentService) {
2727
2828 fun delete (ctx : Context ) {
2929 val slug = ctx.pathParam<String >(" slug" ).get()
30- val id = ctx.pathParam<Long >(" slug " ).get()
30+ val id = ctx.pathParam<Long >(" id " ).get()
3131 commentService.delete(id, slug)
3232 }
3333
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import com.mashape.unirest.http.HttpResponse
1010import com.mashape.unirest.http.ObjectMapper
1111import com.mashape.unirest.http.Unirest
1212import io.javalin.core.util.Header
13- import io.javalin.json.JavalinJson
13+ import io.javalin.plugin. json.JavalinJson
1414import io.realworld.app.domain.Article
1515import io.realworld.app.domain.ArticleDTO
1616import io.realworld.app.domain.User
Original file line number Diff line number Diff line change 11server_port =3000
2- context =api
2+ context =/ api
33jdbc.url =jdbc:h2:mem:
44db.username =sa
55db.password =
You can’t perform that action at this time.
0 commit comments