A. Svensson
e94ff7ede7
Cleaned up error handling.
2016-06-19 16:08:17 +02:00
A. Svensson
5adf029b4c
Clean up template loading and add handler for static files.
2016-06-19 15:55:07 +02:00
A. Svensson
3fb5a6a3e9
Do not expose the database at instance.DB anymore.
2016-06-19 15:32:18 +02:00
A. Svensson
d2af505b0c
Add TOML config and clean up startup.
...
- Removed servers.json and it's config code.
- Load the new config.toml, using TOML instead of JSON.
- Moved most of the cli flags to the config file.
- Simplified creation of a new server instance (using New()).
- Goroutine running updates was moved inside the lib.
2016-06-19 15:31:38 +02:00
A. Svensson
ddc9377e53
Remove gin and use http/gorilla mux instead.
2016-06-19 13:52:52 +02:00
A. Svensson
fd57f1b6ca
Update asset embedding.
2016-06-19 12:20:16 +02:00
A. Svensson
1231648035
Add some internal joke thing.
2016-06-17 21:34:26 +02:00
A. Svensson
acc9175b07
Embed the static files.
2016-05-03 18:50:40 +02:00
A. Svensson
46e47c4ef7
Load templates from correct package.
2016-04-22 15:32:35 +02:00
A. Svensson
07828f0e6a
Embed templates and use them for the web server.
2016-04-22 15:01:18 +02:00
A. Svensson
2976629ad2
Add about page.
2016-04-21 16:32:04 +02:00
A. Svensson
6fe5510291
Handle web errors better.
2016-04-21 15:47:55 +02:00
A. Svensson
d661c0352f
Rename all templates.
2016-04-21 15:27:03 +02:00
A. Svensson
23d2d3c75c
Add simple error 404 page.
2016-04-21 15:23:46 +02:00
A. Svensson
e526cff3e7
Removed the IsDebug* crap.
2016-04-21 14:59:43 +02:00
A. Svensson
5a10cdecd9
Fix the stupid DB functions and embed gorm instead.
2016-02-20 20:46:27 +01:00
A. Svensson
9723c63912
Fix encoding issue with server titles.
2016-02-20 19:55:23 +01:00
A. Svensson
9043b8b10d
Stop setting up the web server when doing an update...
2016-02-20 17:54:21 +01:00
A. Svensson
207c0a056b
Fixed bug with tuesday/thursday getting mixed.
2015-11-03 22:08:29 +01:00
A. Svensson
c6ec28fc9b
Added the new go code.
2015-11-03 19:36:33 +01:00