Globally renamed Snowflake to ID

This commit is contained in:
2022-08-27 14:05:59 +02:00
parent 03d845b00d
commit 590906d555
6 changed files with 11 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ info (
type (
ExpandReq {
Snowflake string `path:"snowflake"`
ID string `path:"id"`
}
ExpandResp {
@@ -23,14 +23,14 @@ type (
}
ShortenResp {
Id string `json:"id"`
ID string `json:"id"`
}
)
service fivefeeteleven-api {
@handler ExpandUrl
get /:snowflake(ExpandReq) returns(ExpandResp)
get /:id(ExpandReq) returns(ExpandResp)
@handler ShortenUrl
post /redirect(ShortenReq) returns(ShortenResp)
}
}