This commit is contained in:
2025-10-07 10:22:34 +08:00
commit 0a60a84ab8
13 changed files with 404 additions and 0 deletions

29
api/Authenticator.api Normal file
View File

@@ -0,0 +1,29 @@
syntax = "v1"
info (
title: "Authenticator API"
desc: "Authenticator API"
author: "cialloo"
date: "2025-10-07"
version: "v1"
)
type (
PingReq {}
PingResp {
ok bool `json:"ok"`
}
)
@server (
prefix: /api/authenticator
)
service Authenticator {
@doc (
summary: "Ping the server to check if it's alive"
description: "Ping the server to check if it's alive"
)
@handler pingHandler
get /ping (PingReq) returns (PingResp)
}