mirror of
https://github.com/jimeh/ozu.io.git
synced 2026-02-19 08:06:39 +00:00
Get basic HTTP server working
This commit is contained in:
15
web/responses.go
Normal file
15
web/responses.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package web
|
||||
|
||||
//go:generate easyjson -all responses.go
|
||||
|
||||
// ShortenedResponse contains shortened URL info.
|
||||
type ShortenedResponse struct {
|
||||
UID string `json:"uid"`
|
||||
ShortURL string `json:"short_url"`
|
||||
URL string `json:"url"`
|
||||
}
|
||||
|
||||
// ErrorResponse contains error info.
|
||||
type ErrorResponse struct {
|
||||
Error string `json:"error"`
|
||||
}
|
||||
Reference in New Issue
Block a user