func (sh ServerHandler) DefineMainRoute(r *mux.Router) {
	// Main route
	r.Methods("GET").Path("/").HandlerFunc(sh.homePage)

	// Notes route
	notesSubrouter := r.PathPrefix("/note").Subrouter()
	notesSubrouter.Methods("GET").Path("/{id}").HandlerFunc(sh.notePage)
}
// DefineMainRoute defines the main routes of the server
DefineMainRoute defines the main routes of the server
// DefineMainRoute defines the main routes of the server
func (sh ServerHandler) DefineMainRoute(r *mux.Router) {
	r.Methods("GET").Path("/").HandlerFunc(sh.homePage)
	notesSubrouter := r.PathPrefix("/note").Subrouter()
	notesSubrouter.Methods("GET").Path("/{id}").HandlerFunc(sh.notePage)
}
func ( sh ServerHandler ) DefineMainRoute ( r * mux . Router ) { r . Methods ( " " ) . Path ( " " ) . HandlerFunc ( sh . homePage ) notesSubrouter := r . PathPrefix ( " " ) . Subrouter ( ) notesSubrouter . Methods ( " " ) . Path ( " " ) . HandlerFunc ( sh . notePage ) }
DefineMainRoute defines the main routes of the server
DefineMainRoute defines the main routes of the server
// Main route // Notes route