[SOLVED] Sharing Server & Client Classes

I have a response class to standardise response formats. It’s defined in a server module but there’s nothing particularly servery about it and I’d like to import it into a client module.

Is that possible to do? Just importing it doesn’t seem to work (doesn’t find it).

Answered my own question - you create it as a client module then the server side can import it.

2 Likes