Make Stimulus controller more generic

This commit is contained in:
Kevin McConnell
2025-01-14 13:37:54 +00:00
parent df260840ab
commit c11b5af5e0
2 changed files with 1 additions and 1 deletions
@@ -0,0 +1,10 @@
import { post } from "@rails/request.js"
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static values = { url: String }
connect() {
post(this.urlValue, { responseKind: "turbo-stream" })
}
}