24 lines
758 B
Dart
24 lines
758 B
Dart
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
|
|
|
class Endpoints {
|
|
// Base URL
|
|
static const devUrl = "";
|
|
static const String prodUrl = '';
|
|
|
|
static const String baseUrl = '$devUrl/api';
|
|
|
|
static String get azureResource => dotenv.env['AZURE_RESOURCE_NAME'] ?? '';
|
|
static String get azureSubscriptionKey =>
|
|
dotenv.env['AZURE_SUBSCRIPTION_KEY'] ?? '';
|
|
|
|
static String get azureEndpoint =>
|
|
'https://$azureResource.cognitiveservices.azure.com/';
|
|
|
|
static String get ocrApiPath => 'vision/v3.2/read/analyze';
|
|
static String ocrResultPath(String operationId) =>
|
|
'vision/v3.2/read/analyzeResults/$operationId';
|
|
|
|
static String get faceApiPath => 'face/v1.0/detect';
|
|
static String get faceVerifyPath => 'face/v1.0/verify';
|
|
}
|