api: remote route takes advantage from builds functions

This commit is contained in:
nemunaire 2019-09-07 01:25:42 +02:00
commit f2fc142869
6 changed files with 83 additions and 6 deletions

View file

@ -41,7 +41,7 @@ func init() {
// Remote
router.GET("/api/remote/themes", apiHandler(sync.ApiListRemoteThemes))
router.GET("/api/remote/themes/:thid", apiHandler(sync.ApiGetRemoteTheme))
router.GET("/api/remote/themes/:thid/exercices", apiHandler(themeHandler(sync.ApiListRemoteExercices)))
router.GET("/api/remote/themes/:thid/exercices", apiHandler(sync.ApiListRemoteExercices))
// Synchronize
router.GET("/api/sync/deep", apiHandler(