# 🌐 Routing

Any folder inside the `src/` directory that contains a `page.tsx` file is considered a **route** — unless the folder name starts with an underscore (`_`), in which case it's ignored.

***

## 🗂️ Routing Structure

For example, given the structure:

```
src/
├── test/
│   └── page.tsx
├── test2/
│   └── page.tsx
├── _test3/
│   └── page.tsx
├── test4/
│   └── test1/
|        └── page.tsx
```

✅ This will create the following routes:

* `/test`
* `/test2`
* `/test4/test1`

❌ `_test3` is ignored because folders starting with `_` are **not routable**.

***

## 🚫 Ignored Folders (`_` prefix)

Folders starting with `_` are **excluded from routing**. These are reserved for things like:

* `_components/` → Shared UI components
* `_functions/` → Utility/helper logic
* `_api/` → API request handlers
* `_sync/` → Sync logic or services

This keeps your folder structure **clean and modular** without affecting the routing system.

***

## ✨ Key Rules Summary

* ✅ `src/[name]/page.tsx` → Becomes a route
* ❌ `src/_[name]/page.tsx` → Ignored by the router
* ✅ Use `_` folders for internal logic, helpers, or organization
