-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore:
npm install
-> npm ci
in Dockerfile
- Loading branch information
1 parent
ffd215d
commit 1235b28
Showing
3 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
import { createRouter } from 'aeria' | ||
import { createRouter, Result } from 'aeria' | ||
|
||
export const router = createRouter() | ||
|
||
router.GET('/test', () => { | ||
router.GET('/test', async (context) => { | ||
const { error, result } = await context.collections.person.functions.get({ | ||
filters: {} | ||
}) | ||
|
||
if( error ) { | ||
return Result.error(error) | ||
} | ||
|
||
return { | ||
message: 'Hello, world!', | ||
result, | ||
} | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters