// NewRouter creates a new router with endpoints set
NewRouter creates a new router with endpoints set
// NewRouter creates a new router with endpoints set
func NewRouter() *httprouter.Router {
	router := httprouter.New()
	router.POST("/jobs", CreateJob)
	router.GET("/jobs", FindJobs)
	router.GET("/jobs/:name", DescribeJob)
	router.PUT("/jobs/:name", UpdateJobStatus)
	router.DELETE("/jobs/:name", DeleteJob)
	router.GET("/executions", FindExecutions)
	router.POST("/notifiers", CreateNotifier)
	router.GET("/notifiers", FindNotifiers)
	router.GET("/notifiers/:name", DescribeNotifier)
	router.DELETE("/notifiers/:name", DeleteNotifier)
	router.POST("/assignments", CreateAssignment)
	router.DELETE("/assignments", DeleteAssignment)
	return router
}
func NewRouter ( ) * httprouter . Router { router := httprouter . New ( ) router . POST ( " " , CreateJob ) router . GET ( " " , FindJobs ) router . GET ( " " , DescribeJob ) router . PUT ( " " , UpdateJobStatus ) router . DELETE ( " " , DeleteJob ) router . GET ( " " , FindExecutions ) router . POST ( " " , CreateNotifier ) router . GET ( " " , FindNotifiers ) router . GET ( " " , DescribeNotifier ) router . DELETE ( " " , DeleteNotifier ) router . POST ( " " , CreateAssignment ) router . DELETE ( " " , DeleteAssignment ) return router }
NewRouter creates a new router with endpoints set
NewRouter creates a new router with endpoints set