mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
268 B
Go
21 lines
268 B
Go
3 years ago
|
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)
|
||
|
}
|