memos/main.go
2021-12-08 23:43:14 +08:00

20 lines
268 B
Go

package main
import (
"memos/api"
"memos/store"
"net/http"
"github.com/gorilla/mux"
)
func main() {
store.InitDBConn()
r := mux.NewRouter().StrictSlash(true)
api.RegisterUserRoutes(r)
api.RegisterAuthRoutes(r)
http.ListenAndServe("localhost:8080", r)
}