Backend can now generate config.js, the very basic stuff, more work needed

This commit is contained in:
Torkel Ödegaard
2014-12-18 15:41:38 +01:00
parent ce947d4793
commit d69258e28f
6 changed files with 79 additions and 49 deletions

View File

@ -43,6 +43,9 @@ func Register(m *macaron.Macaron) {
m.Post("/api/dashboard/", auth, PostDashboard)
m.Delete("/api/dashboard/:slug", auth, DeleteDashboard)
// frontend config
m.Get("/frontend/config", auth, GetConfigJS)
// rendering
m.Get("/render/*", auth, RenderToPng)
}