# ART Services separation (within monolith)

This project keeps ART Services in a self-contained “module” (routes + config) so it can be maintained independently and later extracted into a standalone service if needed.

## Subdomain hosting

1. Set `ART_DOMAIN` in `.env` (example: `ART_DOMAIN=art.example.com`).
2. Point `art.example.com` DNS + web server (nginx/apache) to the same Laravel deployment.
3. Visit `https://art.example.com/services`.

If `ART_DOMAIN` is empty, ART Services remains available at `/services` on the main domain.

## Lightweight API endpoints

These are available under `/api`:

- `GET /api/art/services` (supports query params like `pid`, `config_id`, `nap_id`)
- `POST /api/art/services/search` (body: `identifier_type`, `identifier`)

## Route locations

- Web + session-auth helper endpoints: `routes/art_web.php`
- JSON API endpoints: `routes/art_api.php`

