docs: add quixzoom-auth-core product to AAMOS
- Product documentation in docs/products/ - Updated MEMORY.md with product info - quiXzoom Auth Core as AAMOS Identity product
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* AAMOS API v1 Standalone Server
|
||||
* Kör på port 3100 (eller annan port via PORT env)
|
||||
* Används för testning innan integration i amos-core
|
||||
*/
|
||||
import 'dotenv/config';
|
||||
import express from 'express';
|
||||
import v1Router from './api/v1/index.mjs';
|
||||
|
||||
const app = express();
|
||||
const PORT = parseInt(process.env.PORT || '3100', 10);
|
||||
|
||||
app.use(express.json({ limit: '10mb' }));
|
||||
|
||||
// CORS
|
||||
app.use((_req, res, next) => {
|
||||
res.setHeader('Access-Control-Allow-Origin', '*');
|
||||
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS');
|
||||
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
|
||||
next();
|
||||
});
|
||||
|
||||
// Mount v1 API
|
||||
app.use('/v1', v1Router);
|
||||
|
||||
// Root
|
||||
app.get('/', (_req, res) => {
|
||||
res.json({ ok: true, service: 'aamos-api-v1', version: '1.0.0', endpoints: '/v1/*' });
|
||||
});
|
||||
|
||||
// Health
|
||||
app.get('/health', (_req, res) => {
|
||||
res.json({ ok: true, service: 'aamos-api-v1', status: 'operational' });
|
||||
});
|
||||
|
||||
app.listen(PORT, '127.0.0.1', () => {
|
||||
console.log(`[AAMOS-API-v1] Server running on http://0.0.0.0:${PORT}`);
|
||||
console.log(`[AAMOS-API-v1] Endpoints: /v1/detect, /v1/verify, /v1/compare, /v1/segment, /v1/classify`);
|
||||
console.log(`[AAMOS-API-v1] /v1/authenticate, /v1/score, /v1/explain, /v1/extract, /v1/track`);
|
||||
});
|
||||
Reference in New Issue
Block a user