Send plugin.json as a separate describing path
Change-Id: I1b2663f1cc1218ea6147f4f92d665fd52da11168
diff --git a/service.go b/service.go
index 0c88a69..0560786 100644
--- a/service.go
+++ b/service.go
@@ -88,16 +88,19 @@
}(),
)
- //
+ // Return widget page
r.GET("/", func(c *gin.Context) {
c.HTML(http.StatusOK, "main.html", gin.H{
"korapServer": korapServer,
})
})
+ // Return provider information
r.HEAD("/:corpus_id/:doc_id/:text_id", CheckSaleUrl)
r.GET("/:corpus_id/:doc_id/:text_id", CheckSaleUrl)
- r.Static("/assets", "./assets")
+
+ // Return plugin manifest
+ r.StaticFile("/plugin.json", "./assets/plugin.json")
return r
}