-
I have an Image model which I store storage key as export default class Image extends Model {
/** File storage path, images/<md5> */
@column()
public path: string;
/** Image public url */
@computed()
public get url() {
return Drive.getUrl(this.path)
}
} How could I do it? |
Beta Was this translation helpful? Give feedback.
Answered by
steveyout
Feb 20, 2023
Replies: 1 comment
-
use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
guoyunhe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use
@afterFetch()
orafterFind
hooks