syntax = "v1"

info (
	title:   "Subscribe API"
	desc:    "API for ppanel"
	author:  "Tension"
	email:   "tension@ppanel.com"
	version: "0.0.1"
)

import "../types.api"

@server (
	prefix:     v1/public/subscribe
	group:      public/subscribe
	middleware: AuthMiddleware
)
service ppanel {
	@doc "Get subscribe list"
	@handler QuerySubscribeList
	get /list returns (QuerySubscribeListResponse)

	@doc "Get subscribe group list"
	@handler QuerySubscribeGroupList
	get /group/list returns (QuerySubscribeGroupListResponse)

	@doc "Get application config"
	@handler QueryApplicationConfig
	get /application/config returns (ApplicationResponse)
}

