API Reference
File Conventions
Special files GioJS recognizes inside app/.
| File | Purpose |
|---|---|
page.tsx | Makes a folder a route |
layout.tsx | Wraps pages in this folder and below |
route.ts | API endpoint (GET/POST/PUT/PATCH/DELETE), SSE, or WebSocket handler |
error.tsx | 500 page when a render throws (app/ root) |
not-found.tsx | 404 page - also exported to 404.html for static sites (app/ root) |