You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
441 B
17 lines
441 B
import {Controller, view, Injectable, Collection} from '@extollo/lib'
|
|
import {FeedPost} from '../../models/FeedPost.model'
|
|
|
|
/**
|
|
* Feed Controller
|
|
* ------------------------------------
|
|
* Backend for routes related to my post feed.
|
|
*/
|
|
@Injectable()
|
|
export class Feed extends Controller {
|
|
public async feed(feedPosts: Collection<FeedPost>) {
|
|
return view('feed', {
|
|
feedPosts: feedPosts.toArray(),
|
|
})
|
|
}
|
|
}
|