Glimpse Routes

This module provides a shortcut route for accessing glimpse functionality.

Route

  • GET /:id - Get page data by ID (equivalent to /views/glimpse/:id)

Authentication

  • Requires user authentication via authCheck middleware
  • Same authentication requirements as the original /views/glimpse/:id route

Parameters

  • id (string, required) - The Notion page ID to retrieve

Response

Returns JSON response with page data from Notion API, with button properties filtered out.

Usage

This route provides the same functionality as /views/glimpse/:id but with a shorter URL path:

  • Original: /views/glimpse/{page-id}
  • Shortcut: /glimpse/{page-id}

Both routes use the same controller and return identical responses.