switch from api application to full-stack application

This commit is contained in:
Marco Zeisler
2020-04-06 20:34:45 +02:00
parent 068de731dc
commit 572e1f821c
72 changed files with 8464 additions and 352 deletions
+6
View File
@@ -0,0 +1,6 @@
// Action Cable provides the framework to deal with WebSockets in Rails.
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
import { createConsumer } from "@rails/actioncable"
export default createConsumer()
+5
View File
@@ -0,0 +1,5 @@
// Load all the channels within this directory and all subdirectories.
// Channel files must be named *_channel.js.
const channels = require.context('.', true, /_channel\.js$/)
channels.keys().forEach(channels)