syntax = "v1"

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

import "../types.api"

type (
	LogResponse {
		List interface{} `json:"list"`
	}
)

@server (
	prefix:     v1/admin/tool
	group:      admin/tool
	middleware: AuthMiddleware
)
service ppanel {
	@doc "Get System Log"
	@handler GetSystemLog
	get /log returns (LogResponse)

	@doc "Restart System"
	@handler RestartSystem
	get /restart
}

