Welcome to the URN Spinup Template! URN enables you to focus on server logic instantly upon setup, saving a lot of unnecessary work.
-
Navigate to the App Directory
cd src/app
You'll see two folders:
external
andinternal
.- External: Contains external API routes.
- Internal: Contains internal API routes.
-
Understanding URN Modules URN treats API routes as extensions, whether they're in external or internal modules. Learn how to write a URN module by examining the demo API at
src/app/internal/root
. -
Loader Function Every module is loaded by an exported function called
loader()
insideloader.ts
.
For more information about database interfaces and other configurations, please refer to the documentation.