Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RERUM API v1 is a NodeJS web service for interaction with the RERUM digital obje
3. **Create .env configuration file** (required for operation):
```bash
# Create .env file in repository root
RERUM_API_VERSION=1.0.0
RERUM_API_VERSION=1.1.0
RERUM_BASE=http://localhost:3005
RERUM_PREFIX=http://localhost:3005/v1/
RERUM_ID_PREFIX=http://localhost:3005/v1/id/
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ npm install
Create a file named `.env` in the root folder. In the above example, the root is `/code_folder/rerum_api`. `/code_folder/rerum_api/.env` looks like this:

```shell
RERUM_API_VERSION = 1.0.0
RERUM_API_VERSION = 1.1.0
COLLECTION_ACCEPTEDSERVER = acceptedServer
COLLECTION_V0 = annotation
AUDIENCE = http://rerum.io/api
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ npm install
Create a file named `.env` in the root folder. In the above example, the root is `/code_folder/rerum_api`. `/code_folder/rerum_api/.env` looks like this:

```shell
RERUM_API_VERSION = 1.0.0
RERUM_API_VERSION = 1.1.0
RERUM_BASE = URL_OF_YOUR_DEPLOYMENT
RERUM_PREFIX = URL_OF_YOUR_DEPLOYMENT/v1/
RERUM_ID_PREFIX = URL_OF_YOUR_DEPLOYMENT/v1/id/
Expand Down
8 changes: 8 additions & 0 deletions __tests__/routes_mounted.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ describe('Check to see that all /v1/api/ route patterns exist.', () => {
expect(routeExists(api_stack, '/api/release')).toBe(true)
})

it('/v1/api/search -- mounted ', () => {
expect(routeExists(api_stack, '/api/search')).toBe(true)
})

it('/v1/api/search/phrase -- mounted ', () => {
expect(routeExists(api_stack, '/api/search/phrase')).toBe(true)
})

})

describe('Check to see that critical static files are present', () => {
Expand Down
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ app.use(
)
app.use(logger('dev'))
app.use(express.json())
app.use(express.text())
app.use(express.urlencoded({ extended: true }))
app.use(cookieParser())

Expand Down
Loading