2026-06-02 11:43:22 -04:00
|
|
|
import { defineBackend } from '@aws-amplify/backend';
|
2026-06-13 21:41:03 -04:00
|
|
|
import { goFunctions } from './functions/go-functions';
|
|
|
|
|
import { rustFunctions } from './functions/rust-functions';
|
|
|
|
|
import { pythonFunctions } from './functions/python-functions';
|
|
|
|
|
import { defineData } from '@aws-amplify/backend';
|
|
|
|
|
import { schema } from './data/resource';
|
|
|
|
|
|
|
|
|
|
const data = defineData({
|
|
|
|
|
schema,
|
|
|
|
|
authorizationModes: {
|
|
|
|
|
defaultAuthorizationMode: 'userPool',
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const backend = defineBackend({
|
2026-06-02 11:43:22 -04:00
|
|
|
data,
|
2026-06-13 21:41:03 -04:00
|
|
|
...goFunctions,
|
|
|
|
|
...rustFunctions,
|
|
|
|
|
...pythonFunctions,
|
2026-06-02 11:43:22 -04:00
|
|
|
});
|
2026-06-13 21:41:03 -04:00
|
|
|
|
|
|
|
|
// Export backend for use in frontend
|
|
|
|
|
export default backend;
|
|
|
|
|
|
|
|
|
|
|