Commit Graph

6 Commits

Author SHA1 Message Date
Alexey Yerin e1c610caf9 Move writeError to api.go
Web interface now uses error HTML template instead.
2021-05-10 20:10:51 +03:00
Alexey Yerin 54be24d1a5 api: use fmt.Fprint/Fprintln
Honestly I didn't know it existed at the time of writing gtranslate :)
2021-03-15 19:46:21 +03:00
Alexey Yerin 3f6bdee18d web, api: terminate request on parse error
When a parser error occurs, the request is not terminated which causes
the HTML page to be dumped after the error message.
2021-03-15 19:42:17 +03:00
Alexey Yerin 4c82aced4b Move request handlers out of main.go 2021-01-22 23:44:50 +03:00
Alexey Yerin 1a32c713bc Merge api.go into main.go
It would be really painful to provide variables there
2021-01-18 22:52:33 +03:00
Alexey Yerin 065bd6cfb0 Initial 2021-01-17 23:19:52 +03:00