后端初步完成

This commit is contained in:
2021-05-21 01:00:58 +08:00
commit 84a7206c08
6 changed files with 722 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package api
import "testing"
func TestAPI(t *testing.T) {
api, err := NewAPI("/tmp/test.sqlite3", ":8080")
if err != nil {
t.Fatal(err.Error())
}
t.Fatal(api.Server.ListenAndServe())
}