Example #1
0
// register our web handlers.
func init() {
	router.Handle("/apk/upload", handler.New(handler.Auth, upload))
	router.Handle("/apk/{apkId}", handler.New(handler.Auth, apkById))
	router.Handle("/apk/{apkId}/download", handler.New(handler.Auth, download))

	router.Handle("/apk/icon/", handler.New(handler.Auth, icon))
	router.Handle("/apk/icon/{iconId}", handler.New(handler.Auth, icon))
}
Example #2
0
func init() {
	router.Handle("/report", handler.New(report))
	router.Handle("/report_error", handler.New(report)) // compat for apps in the wild

	router.Handle("/report/{apkId}", handler.New(handler.Auth, errorsByApkId))
	router.Handle("/report/{apkId}/exportCSV", handler.New(handler.Auth, exportCSV))
	router.Handle("/report/{apkId}/{reportId}", handler.New(handler.Auth, errorDetails))
}
Example #3
0
func init() {
	router.Handle("/project", handler.New(handler.Auth, projectsByUser))
	router.Handle("/project/{projectId}", handler.New(handler.Auth, projectById))
	router.Handle("/project/{projectId}/history", handler.New(handler.Auth, projectHistory))
}
Example #4
0
func init() {
	http.Handle("/user", handler.New(handler.Auth, userCurrent))
	http.Handle("/user/setprofile", handler.New(handler.Auth, userSetProfile))
	http.Handle("/user/setpassword", handler.New(handler.Auth, userSetPassword))
}