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.
20 lines
501 B
20 lines
501 B
import {Controller, view, Session, Inject, Injectable, Locale} from '@extollo/lib'
|
|
|
|
@Injectable()
|
|
export class Home extends Controller {
|
|
@Inject()
|
|
protected readonly session!: Session;
|
|
|
|
@Inject()
|
|
protected readonly locale!: Locale;
|
|
|
|
public welcome() {
|
|
this.session.set('app_visits', this.session.get('app_visits', 0) + 1)
|
|
|
|
return view('welcome', {
|
|
app_visits: this.session.get('app_visits'),
|
|
locale: this.locale.helper(),
|
|
})
|
|
}
|
|
}
|