mirror of
https://github.com/jimeh/ozu.io.git
synced 2026-02-19 08:06:39 +00:00
Split Handler into Handler and APIHandler
This commit is contained in:
15
web/api_responses.go
Normal file
15
web/api_responses.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package web
|
||||
|
||||
//go:generate easyjson -all api_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"`
|
||||
}
|
||||
Reference in New Issue
Block a user