| 1234567891011121314 |
- import { Elysia } from 'elysia'
- import { Eta } from "eta"
- const eta = new Eta({ views: "./templates" })
- import Meteostanica from '../../utils/meteostanica'
- export default (langName) => new Elysia()
- .get('/', ({ set }) => {
- const data = Meteostanica.getData()
- set.headers['content-type'] = 'text/html; charset=utf8'
- return eta.render(`${langName}/index`, { data })
- })
|