Rename api_responses.go to responses.go

This commit is contained in:
2016-07-18 00:00:25 +01:00
parent cf0d18e4a0
commit c53b088f19
2 changed files with 13 additions and 13 deletions

15
web/responses.go Normal file
View File

@@ -0,0 +1,15 @@
package web
//go:generate easyjson -all responses.go
// URLResponse contains shortened URL info.
type URLResponse struct {
UID string `json:"uid"`
URL string `json:"url"`
Target string `json:"target"`
}
// ErrorResponse contains error info.
type ErrorResponse struct {
Error string `json:"error"`
}