add schema support

This commit is contained in:
“nishant-sharma”
2021-05-12 15:26:13 +05:30
parent f680bc4017
commit 666089458f
3 changed files with 57 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ func NewServer(port string) (*Server, error) {
router.HandleFunc("/health/toggle", healthToggleHandler).Methods("GET")
router.HandleFunc("/schema/get", getSchemaHandler).Methods("GET")
router.HandleFunc("/schema/refresh", refreshSchemaHandler).Methods("POST")
router.HandleFunc("/schema/add", addSchemaHandler).Methods("POST")
// router.HandleFunc("/test", testHandler).Methods("GET")
// router.HandleFunc("/stop", stopHandler).Methods("POST")