mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 23:22:47 +08:00
20 lines
268 B
Go
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)
|
|
}
|