mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
16 lines
256 B
Go
16 lines
256 B
Go
package server
|
|
|
|
import "net/http"
|
|
|
|
func init() {
|
|
animation := Animation{}
|
|
Register("/api/Animation/List", animation.List)
|
|
}
|
|
|
|
type Animation struct {
|
|
}
|
|
|
|
func (a Animation) List(w http.ResponseWriter, r *http.Request) {
|
|
w.Write([]byte("Hello, world!"))
|
|
}
|