- Add go.mod and go.sum for dependency management - Implement models for List, Field, Item, ItemValue, SyncRequest, SyncResponse, and NotificationEvent - Create notification handling functions including enqueueNotification and ignoreNotificationError - Implement sync functionality to handle data synchronization between client and server - Add web data handling and notification polling endpoints - Include tests for timestamp normalization and sync logic - Embed web assets for serving the frontend application
12 lines
182 B
Go
12 lines
182 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
"testing"
|
|
)
|
|
|
|
func TestRegisterRoutes(t *testing.T) {
|
|
server := &Server{auth: &AuthService{}}
|
|
server.registerRoutes(http.NewServeMux(), webFS)
|
|
}
|